1
Fork 0

Resolve reviews

This commit is contained in:
Shotaro Yamada 2019-09-28 20:29:35 +09:00
parent a3f403aa50
commit 1cee3fe00e
2 changed files with 12 additions and 14 deletions

View file

@ -343,7 +343,7 @@ impl<'a, 'tcx> NonminimalBoolVisitor<'a, 'tcx> {
let stats = terminal_stats(&expr);
let mut simplified = expr.simplify();
for simple in Bool::Not(Box::new(expr.clone())).simplify() {
for simple in Bool::Not(Box::new(expr)).simplify() {
match simple {
Bool::Not(_) | Bool::True | Bool::False => {},
_ => simplified.push(Bool::Not(Box::new(simple.clone()))),