about summary refs log tree commit diff
path: root/src/string.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2018-07-06 11:58:22 +1200
committerNick Cameron <ncameron@mozilla.com>2018-07-12 21:37:28 +1200
commit486f8fd8e7b02b08832cd2bedf62afa351bdf672 (patch)
treeac92bff9feac6ae6fb5c44d7a897c3fef5e185e1 /src/string.rs
parenta4cdb68925e4cb3a2df74df61da333136afae582 (diff)
Fixup formatting of tests and source
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 a5453c0a8ed..39eaf57d72e 100644
--- a/src/string.rs
+++ b/src/string.rs
@@ -72,7 +72,8 @@ pub fn rewrite_string<'a>(
     // succeed.
     let mut max_chars = shape
         .width
-        .checked_sub(fmt.opener.len() + ender_length + 1)? + 1;
+        .checked_sub(fmt.opener.len() + ender_length + 1)?
+        + 1;
 
     // Snip a line at a time from `orig` until it is used up. Push the snippet
     // onto result.