1 error: called `assert!` with `Result::is_ok`
2 --> $DIR/assertions_on_result_states.rs:24:5
4 LL | assert!(r.is_ok());
5 | ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`
7 = note: `-D clippy::assertions-on-result-states` implied by `-D warnings`
9 error: called `assert!` with `Result::is_ok`
10 --> $DIR/assertions_on_result_states.rs:42:5
12 LL | assert!(get_ok().is_ok());
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `get_ok().unwrap()`
15 error: called `assert!` with `Result::is_ok`
16 --> $DIR/assertions_on_result_states.rs:45:5
18 LL | assert!(get_ok_macro!().is_ok());
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `get_ok_macro!().unwrap()`
21 error: called `assert!` with `Result::is_ok`
22 --> $DIR/assertions_on_result_states.rs:58:5
24 LL | assert!(r.is_ok());
25 | ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`
27 error: called `assert!` with `Result::is_ok`
28 --> $DIR/assertions_on_result_states.rs:64:9
30 LL | assert!(r.is_ok());
31 | ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`
33 error: called `assert!` with `Result::is_err`
34 --> $DIR/assertions_on_result_states.rs:72:5
36 LL | assert!(r.is_err());
37 | ^^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap_err()`
39 error: called `assert!` with `Result::is_err`
40 --> $DIR/assertions_on_result_states.rs:82:5
42 LL | assert!(res.is_err())
43 | ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `res.unwrap_err();`
45 error: aborting due to 7 previous errors