From 34fa428471e0401377ed59ce7d75b7a280f0582d Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Mon, 19 Jun 2017 12:58:29 +1200 Subject: [PATCH] make file_lines::Range public --- Cargo.lock | 2 +- src/file_lines.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d56da60ea21..c17aea72696 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] name = "rustfmt-nightly" -version = "0.1.2" +version = "0.1.3" dependencies = [ "diff 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/src/file_lines.rs b/src/file_lines.rs index 81755eae805..4eae2602908 100644 --- a/src/file_lines.rs +++ b/src/file_lines.rs @@ -19,7 +19,7 @@ use codemap::LineRange; /// A range that is inclusive of both ends. #[derive(Clone, Copy, Debug, Eq, PartialEq, PartialOrd, Ord, Deserialize)] -struct Range { +pub struct Range { lo: usize, hi: usize, }