1 error: this boolean expression can be simplified
2 --> $DIR/nonminimal_bool_methods.rs:8:13
4 LL | let _ = !a.is_some();
5 | ^^^^^^^^^^^^ help: try: `a.is_none()`
7 = note: `-D clippy::nonminimal-bool` implied by `-D warnings`
9 error: this boolean expression can be simplified
10 --> $DIR/nonminimal_bool_methods.rs:10:13
12 LL | let _ = !a.is_none();
13 | ^^^^^^^^^^^^ help: try: `a.is_some()`
15 error: this boolean expression can be simplified
16 --> $DIR/nonminimal_bool_methods.rs:12:13
18 LL | let _ = !b.is_err();
19 | ^^^^^^^^^^^ help: try: `b.is_ok()`
21 error: this boolean expression can be simplified
22 --> $DIR/nonminimal_bool_methods.rs:14:13
24 LL | let _ = !b.is_ok();
25 | ^^^^^^^^^^ help: try: `b.is_err()`
27 error: this boolean expression can be simplified
28 --> $DIR/nonminimal_bool_methods.rs:16:13
30 LL | let _ = !(a.is_some() && !c);
31 | ^^^^^^^^^^^^^^^^^^^^ help: try: `a.is_none() || c`
33 error: this boolean expression can be simplified
34 --> $DIR/nonminimal_bool_methods.rs:17:13
36 LL | let _ = !(a.is_some() || !c);
37 | ^^^^^^^^^^^^^^^^^^^^ help: try: `a.is_none() && c`
39 error: this boolean expression can be simplified
40 --> $DIR/nonminimal_bool_methods.rs:18:26
42 LL | let _ = !(!c ^ c) || !a.is_some();
43 | ^^^^^^^^^^^^ help: try: `a.is_none()`
45 error: this boolean expression can be simplified
46 --> $DIR/nonminimal_bool_methods.rs:19:25
48 LL | let _ = (!c ^ c) || !a.is_some();
49 | ^^^^^^^^^^^^ help: try: `a.is_none()`
51 error: this boolean expression can be simplified
52 --> $DIR/nonminimal_bool_methods.rs:20:23
54 LL | let _ = !c ^ c || !a.is_some();
55 | ^^^^^^^^^^^^ help: try: `a.is_none()`
57 error: this boolean expression can be simplified
58 --> $DIR/nonminimal_bool_methods.rs:92:8
60 LL | if !res.is_ok() {}
61 | ^^^^^^^^^^^^ help: try: `res.is_err()`
63 error: this boolean expression can be simplified
64 --> $DIR/nonminimal_bool_methods.rs:93:8
66 LL | if !res.is_err() {}
67 | ^^^^^^^^^^^^^ help: try: `res.is_ok()`
69 error: this boolean expression can be simplified
70 --> $DIR/nonminimal_bool_methods.rs:96:8
72 LL | if !res.is_some() {}
73 | ^^^^^^^^^^^^^^ help: try: `res.is_none()`
75 error: this boolean expression can be simplified
76 --> $DIR/nonminimal_bool_methods.rs:97:8
78 LL | if !res.is_none() {}
79 | ^^^^^^^^^^^^^^ help: try: `res.is_some()`
81 error: aborting due to 13 previous errors