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