Bugfix + add test.
This commit is contained in:
parent
8e9d0c277c
commit
ed202b6055
3 changed files with 9 additions and 7 deletions
|
|
@ -218,13 +218,8 @@ impl<'a, 'tcx, 'v> SuggestContext<'a, 'tcx, 'v> {
|
|||
self.output.push_str(&str)
|
||||
} else {
|
||||
self.output.push('!');
|
||||
if let ExprBinary(..) = terminal.node {
|
||||
self.output.push('(');
|
||||
}
|
||||
self.recurse(inner);
|
||||
if let ExprBinary(..) = terminal.node {
|
||||
self.output.push(';');
|
||||
}
|
||||
let snip = self.snip(terminal);
|
||||
self.output.push_str(&snip);
|
||||
}
|
||||
},
|
||||
True | False | Not(_) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue