diff --git a/src/items.rs b/src/items.rs index a24e02957fa..2817b23b33e 100644 --- a/src/items.rs +++ b/src/items.rs @@ -341,8 +341,7 @@ impl<'a> FmtVisitor<'a> { // The fix is comments in the AST or a span for the closing paren. let snippet = self.snippet(codemap::mk_sp(prev_end, next_span_start)); let snippet = snippet.trim(); - let snippet = &snippet[..snippet.find(terminator) - .unwrap_or(snippet.find(separator).unwrap_or(snippet.len()))]; + let snippet = &snippet[..snippet.find(terminator).unwrap_or(snippet.len())]; let snippet = snippet.trim(); result.push(snippet.to_owned());