about summary refs log tree commit diff
path: root/src/string.rs
diff options
context:
space:
mode:
authortopecongiro <seuchida@gmail.com>2017-09-15 12:10:58 +0900
committertopecongiro <seuchida@gmail.com>2017-09-15 12:10:58 +0900
commitf51261e93eedaba4ea17a70bd33fd0f34a5ded26 (patch)
tree4a3270de7222fa894e416630c05270811bbc8ac6 /src/string.rs
parent45e48ec424b2e1db489db860581aaf7e684fbae0 (diff)
Cargo fmt
Diffstat (limited to 'src/string.rs')
-rw-r--r--src/string.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.rs b/src/string.rs
index 6cb2fcddaef..84271f20082 100644
--- a/src/string.rs
+++ b/src/string.rs
@@ -82,8 +82,8 @@ pub fn rewrite_string<'a>(orig: &str, fmt: &StringFormat<'a>) -> Option<String>
                     // If we can't break at whitespace or punctuation, grow the string instead.
                     if cur_end < cur_start + MIN_STRING {
                         cur_end = cur_start + max_chars;
-                        while !(punctuation.contains(graphemes[cur_end - 1]) ||
-                            graphemes[cur_end - 1].trim().is_empty())
+                        while !(punctuation.contains(graphemes[cur_end - 1])
+                            || graphemes[cur_end - 1].trim().is_empty())
                         {
                             if cur_end >= graphemes.len() {
                                 let line = &graphemes[cur_start..].join("");