diff options
| author | topecongiro <seuchida@gmail.com> | 2017-05-25 16:08:08 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2017-05-25 16:08:08 +0900 |
| commit | 86856491bc3457bd2abe66359a4f63cc6cbd0769 (patch) | |
| tree | 94e6143822dcff66731f1f0e67a0d51c902b62da /src/string.rs | |
| parent | 2580d7a3107b99fb7cc43dd19d833396f2522e9f (diff) | |
Format source codes
Diffstat (limited to 'src/string.rs')
| -rw-r--r-- | src/string.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/string.rs b/src/string.rs index 17c6533f7a0..365d205aef1 100644 --- a/src/string.rs +++ b/src/string.rs @@ -35,8 +35,7 @@ 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 = ":,;."; |
