about summary refs log tree commit diff
path: root/src/string.rs
diff options
context:
space:
mode:
authorSeiichi Uchida <seuchida@gmail.com>2017-09-17 15:23:25 +0900
committertopecongiro <seuchida@gmail.com>2017-09-19 10:04:35 +0900
commitdf7d2be5629b7162426f8a3c6dbf005f228008fe (patch)
treecdb7353ef2d0deaeee4919b182bcca6796176e4e /src/string.rs
parent8974f89381cffd73c35b0cb91eb4e49a66f93d5c (diff)
Move Indent and Shape to shape.rs from lib.rs
Diffstat (limited to 'src/string.rs')
-rw-r--r--src/string.rs5
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,
         };