about summary refs log tree commit diff
path: root/src/string.rs
diff options
context:
space:
mode:
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("");