Skip to content

Commit

Permalink
Fix Clippy warning in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tov committed Dec 20, 2021
1 parent a901c74 commit a888a39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ impl<T: Clone + Ord> Tester<T> {
let f = &mut self.fake;

match cmd {
Push => r.push(e1) == f.push(e2),
Push => {
r.push(e1);
f.push(e2);
true
}
PopMin => r.pop_min() == f.pop_min(),
PopMax => r.pop_max() == f.pop_max(),
PushPopMin => r.push_pop_min(e1) == f.push_pop_min(e2),
Expand Down

0 comments on commit a888a39

Please sign in to comment.