Skip to content

Commit

Permalink
Revert "Fix clippy::assertions_on_result_states warning"
Browse files Browse the repository at this point in the history
This reverts commit 36bf2d6.
  • Loading branch information
taiki-e committed Aug 1, 2022
1 parent f93d611 commit 74c4485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pin_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ fn project_replace_panic() {
// called, so this is unreachable.
unreachable!();
}));
res.unwrap_err();
assert!(res.is_err());
assert!(a);
assert!(b);
assert!(c);
Expand All @@ -879,7 +879,7 @@ fn project_replace_panic() {
}
unreachable!();
}));
res.unwrap_err();
assert!(res.is_err());
assert!(a);
assert!(b);
assert!(c);
Expand Down

0 comments on commit 74c4485

Please sign in to comment.