Fixup formatting of tests and source

This commit is contained in:
Nick Cameron 2018-07-06 11:58:22 +12:00
parent a4cdb68925
commit 486f8fd8e7
14 changed files with 65 additions and 57 deletions

View file

@ -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.