From f51261e93eedaba4ea17a70bd33fd0f34a5ded26 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Fri, 15 Sep 2017 12:10:58 +0900 Subject: Cargo fmt --- src/string.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/string.rs') diff --git a/src/string.rs b/src/string.rs index 6cb2fcddaef..84271f20082 100644 --- a/src/string.rs +++ b/src/string.rs @@ -82,8 +82,8 @@ pub fn rewrite_string<'a>(orig: &str, fmt: &StringFormat<'a>) -> Option // If we can't break at whitespace or punctuation, grow the string instead. if cur_end < cur_start + MIN_STRING { cur_end = cur_start + max_chars; - while !(punctuation.contains(graphemes[cur_end - 1]) || - graphemes[cur_end - 1].trim().is_empty()) + while !(punctuation.contains(graphemes[cur_end - 1]) + || graphemes[cur_end - 1].trim().is_empty()) { if cur_end >= graphemes.len() { let line = &graphemes[cur_start..].join(""); -- cgit 1.4.1-3-g733a5