From e4efa22983a676fc78dafc3d39ff81f062e72120 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Tue, 28 Mar 2017 10:58:41 +1300 Subject: Source formatting fallout --- src/string.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/string.rs') 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 // `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); -- cgit 1.4.1-3-g733a5