From cbd568083d87a90dfe5ab0e90f404454946c9f20 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Mon, 15 Oct 2018 11:52:27 +1300 Subject: Fixup formatting --- src/string.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/string.rs') diff --git a/src/string.rs b/src/string.rs index 2fe13db2139..b3f6daadfac 100644 --- a/src/string.rs +++ b/src/string.rs @@ -287,11 +287,12 @@ fn break_string(max_chars: usize, trim_end: bool, line_end: &str, input: &[&str] return break_at(max_chars - 1); } if let Some(url_index_end) = detect_url(input, max_chars) { - let index_plus_ws = url_index_end + input[url_index_end..] - .iter() - .skip(1) - .position(|grapheme| not_whitespace_except_line_feed(grapheme)) - .unwrap_or(0); + let index_plus_ws = url_index_end + + input[url_index_end..] + .iter() + .skip(1) + .position(|grapheme| not_whitespace_except_line_feed(grapheme)) + .unwrap_or(0); return if trim_end { SnippetState::LineEnd( input[..=url_index_end].join("").to_string(), -- cgit 1.4.1-3-g733a5