Skip to content

Commit

Permalink
chore: Enable clippy::assertions_on_result_states
Browse files Browse the repository at this point in the history
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: Patrick Roy <roypat@amazon.co.uk>
  • Loading branch information
roypat committed Dec 18, 2023
1 parent 499fe41 commit d092c3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ rustflags = [
"-Wmissing_debug_implementations",
"-Wclippy::exit",
"-Wclippy::tests_outside_test_module",
"-Wclippy::assertions_on_result_states"
]

[net]
Expand Down

0 comments on commit d092c3f

Please sign in to comment.