From d092c3f4ba2350a26cbf9a2826908e1d16da3848 Mon Sep 17 00:00:00 2001 From: Patrick Roy Date: Thu, 14 Dec 2023 15:24:06 +0000 Subject: [PATCH] chore: Enable clippy::assertions_on_result_states 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 --- .cargo/config | 1 + 1 file changed, 1 insertion(+) diff --git a/.cargo/config b/.cargo/config index df357e36cfc..35bd7dea1b4 100644 --- a/.cargo/config +++ b/.cargo/config @@ -11,6 +11,7 @@ rustflags = [ "-Wmissing_debug_implementations", "-Wclippy::exit", "-Wclippy::tests_outside_test_module", + "-Wclippy::assertions_on_result_states" ] [net]