mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-27 07:03:45 +00:00
Remove redudant parens
This commit is contained in:
parent
71448ff3c2
commit
ba792a7fa2
@ -335,7 +335,7 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
|
||||
let snippet = self.snippet(item.span);
|
||||
let where_span_end = snippet
|
||||
.find_uncommented("{")
|
||||
.map(|x| (BytePos(x as u32)) + source!(self, item.span).lo());
|
||||
.map(|x| BytePos(x as u32) + source!(self, item.span).lo());
|
||||
let rw = format_impl(&self.get_context(), item, self.block_indent, where_span_end);
|
||||
self.push_rewrite(item.span, rw);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user