From df7d2be5629b7162426f8a3c6dbf005f228008fe Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Sun, 17 Sep 2017 15:23:25 +0900 Subject: Move Indent and Shape to shape.rs from lib.rs --- src/string.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/string.rs') diff --git a/src/string.rs b/src/string.rs index 84271f20082..8090926522d 100644 --- a/src/string.rs +++ b/src/string.rs @@ -13,8 +13,8 @@ use regex::Regex; use unicode_segmentation::UnicodeSegmentation; -use Shape; use config::Config; +use shape::Shape; use utils::wrap_str; const MIN_STRING: usize = 10; @@ -128,6 +128,7 @@ pub fn rewrite_string<'a>(orig: &str, fmt: &StringFormat<'a>) -> Option #[cfg(test)] mod test { use super::{rewrite_string, StringFormat}; + use shape::{Indent, Shape}; #[test] fn issue343() { @@ -137,7 +138,7 @@ mod test { closer: "\"", line_start: " ", line_end: "\\", - shape: ::Shape::legacy(2, ::Indent::empty()), + shape: Shape::legacy(2, Indent::empty()), trim_end: false, config: &config, }; -- cgit 1.4.1-3-g733a5