Skip to content

Commit 488a2d3

Browse files
RuoqingHeroypat
authored andcommitted
chore: Enable clippy::assertions_on_result_states
As @roypat pointed out, and quote: "This lint disallows asserttions on is_ok()/is_err() in favor of either using unwrap (so that at least if the test fails, we the failure message will contain the actual failure reason instead of just "was not ok/err"), or actually matching the specific variant." Signed-off-by: Ruoqing He <[email protected]>
1 parent a2f55b9 commit 488a2d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![deny(missing_docs)]
88
#![deny(missing_copy_implementations)]
99
#![deny(missing_debug_implementations)]
10+
#![warn(clippy::assertions_on_result_states)]
1011

1112
//! A safe wrapper around the kernel's KVM interface.
1213
//!

0 commit comments

Comments
 (0)