Skip to content

Commit

Permalink
Cargo clippy --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
togatoga committed Sep 11, 2021
1 parent 088bdf7 commit 9b3014c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn main() {
};
print!("x{} = {} ", var + 1, b);
});
println!("");
println!();
}

{
Expand Down
14 changes: 6 additions & 8 deletions tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,12 @@ mod tests {
);
assert!(false);
}
if status == Status::Sat {
if !sat_model_check(&cnf.clauses, &solver.models) {
eprintln!(
"Assignments are wrong!! cnf: {}, Result: {:?} Expected: {:?}",
path_str, status, expected
);
assert!(false);
}
if status == Status::Sat && !sat_model_check(&cnf.clauses, &solver.models) {
eprintln!(
"Assignments are wrong!! cnf: {}, Result: {:?} Expected: {:?}",
path_str, status, expected
);
assert!(false);
}
}
}
Expand Down

0 comments on commit 9b3014c

Please sign in to comment.