about summary refs log tree commit diff
path: root/src/string.rs
diff options
context:
space:
mode:
authortopecongiro <seuchida@gmail.com>2017-05-24 00:07:02 +0900
committertopecongiro <seuchida@gmail.com>2017-05-24 00:07:02 +0900
commit04bb5d892978b868a953bce4153dde66e583c7f4 (patch)
treecfe1a19edcee492dcf014135f7b2603870f90692 /src/string.rs
parent92b54d6490fc638a136c07b42921ba7ff67743fa (diff)
Format source codes
Diffstat (limited to 'src/string.rs')
-rw-r--r--src/string.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/string.rs b/src/string.rs
index 365d205aef1..17c6533f7a0 100644
--- a/src/string.rs
+++ b/src/string.rs
@@ -35,7 +35,8 @@ pub fn rewrite_string<'a>(orig: &str, fmt: &StringFormat<'a>) -> Option<String>
     let re = Regex::new(r"([^\\](\\\\)*)\\[\n\r][[:space:]]*").unwrap();
     let stripped_str = re.replace_all(orig, "$1");
 
-    let graphemes = UnicodeSegmentation::graphemes(&*stripped_str, false).collect::<Vec<&str>>();
+    let graphemes = UnicodeSegmentation::graphemes(&*stripped_str, false)
+        .collect::<Vec<&str>>();
     let shape = fmt.shape.visual_indent(0);
     let indent = shape.indent.to_string(fmt.config);
     let punctuation = ":,;.";