Skip to content

Commit c0e7854

Browse files
committed
Ignore assertions_on_result_states clippy lint
error: called `assert!` with `Result::is_ok` --> tests/test_macros.rs:29:5 | 29 | assert!(f().is_ok()); | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `f().unwrap()` | = note: `-D clippy::assertions-on-result-states` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_result_states error: called `assert!` with `Result::is_ok` --> tests/test_macros.rs:36:5 | 36 | assert!(f().is_ok()); | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `f().unwrap()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_result_states error: called `assert!` with `Result::is_err` --> tests/test_macros.rs:42:5 | 42 | assert!(f().is_err()); | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `f().unwrap_err()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_result_states error: called `assert!` with `Result::is_err` --> tests/test_downcast.rs:122:5 | 122 | assert!(error.downcast::<&str>().is_err()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `error.downcast::<&str>().unwrap_err()` | = note: `-D clippy::assertions-on-result-states` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_result_states
1 parent b594668 commit c0e7854

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/test_downcast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(clippy::wildcard_imports)]
1+
#![allow(clippy::assertions_on_result_states, clippy::wildcard_imports)]
22

33
mod common;
44
mod drop;

tests/test_macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![allow(
2+
clippy::assertions_on_result_states,
23
clippy::eq_op,
34
clippy::items_after_statements,
45
clippy::needless_pass_by_value,

0 commit comments

Comments
 (0)