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