Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information