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