diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2017-03-28 10:58:41 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2017-03-28 10:58:41 +1300 |
| commit | e4efa22983a676fc78dafc3d39ff81f062e72120 (patch) | |
| tree | 905ca22de6e7a4a395d7128290b8c71821c93cec /src/string.rs | |
| parent | 038436919d762bf6fbdd87ce4e824f8c8c0c8822 (diff) | |
Source formatting fallout
Diffstat (limited to 'src/string.rs')
| -rw-r--r-- | src/string.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/string.rs b/src/string.rs index 8f51b09b6cc..37a569ce67d 100644 --- a/src/string.rs +++ b/src/string.rs @@ -42,7 +42,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() + let mut result = String::with_capacity(stripped_str + .len() .checked_next_power_of_two() .unwrap_or(usize::max_value())); result.push_str(fmt.opener); |
