diff options
| author | Marcus Klaas <mail@marcusklaas.nl> | 2015-06-04 15:05:50 +0200 |
|---|---|---|
| committer | Marcus Klaas <mail@marcusklaas.nl> | 2015-06-04 15:05:50 +0200 |
| commit | 13141e261b4df0ee99fd196466f0bb04c8ce0632 (patch) | |
| tree | 5a8dc42c53e0a7ed2c6d0e5a3f4a26b1b6c1dba7 /src | |
| parent | 227322ddba1fab63e7103a73abf342a4ab56c4d7 (diff) | |
Remove duplicate statement in make_comments_for_list
Diffstat (limited to 'src')
| -rw-r--r-- | src/items.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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()); |
