diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2017-02-22 16:20:50 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2017-02-23 13:15:48 +1300 |
| commit | 9eb78a33335b83073c90dd8b065c31f1fb958dcc (patch) | |
| tree | e97bddd58194324584b1f076c1a600b9c0def510 /src/string.rs | |
| parent | ba1202f6b3dfc634ed651e1b1f0994b613f7a85c (diff) | |
Fallout
Diffstat (limited to 'src/string.rs')
| -rw-r--r-- | src/string.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.rs b/src/string.rs index 7fd6bb78e61..d8b3711040c 100644 --- a/src/string.rs +++ b/src/string.rs @@ -43,8 +43,8 @@ pub fn rewrite_string<'a>(orig: &str, fmt: &StringFormat<'a>) -> Option<String> // `cur_start` is the position in `orig` of the start of the current line. let mut cur_start = 0; let mut result = String::with_capacity(stripped_str.len() - .checked_next_power_of_two() - .unwrap_or(usize::max_value())); + .checked_next_power_of_two() + .unwrap_or(usize::max_value())); result.push_str(fmt.opener); let ender_length = fmt.line_end.len(); |
