diff options
Diffstat (limited to 'src/string.rs')
| -rw-r--r-- | src/string.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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<String> #[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, }; |
