fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: question mark operator is useless here 2 --> $DIR/needless_question_mark.rs:20:12 3 | 4LL | return Some(to.magic?); 5 | ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic` 6 | 7 = note: `-D clippy::needless-question-mark` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::needless_question_mark)]` 9 10error: question mark operator is useless here 11 --> $DIR/needless_question_mark.rs:28:12 12 | 13LL | return Some(to.magic?) 14 | ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic` 15 16error: question mark operator is useless here 17 --> $DIR/needless_question_mark.rs:33:5 18 | 19LL | Some(to.magic?) 20 | ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic` 21 22error: question mark operator is useless here 23 --> $DIR/needless_question_mark.rs:38:21 24 | 25LL | to.and_then(|t| Some(t.magic?)) 26 | ^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `t.magic` 27 28error: question mark operator is useless here 29 --> $DIR/needless_question_mark.rs:47:9 30 | 31LL | Some(t.magic?) 32 | ^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `t.magic` 33 34error: question mark operator is useless here 35 --> $DIR/needless_question_mark.rs:52:12 36 | 37LL | return Ok(tr.magic?); 38 | ^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `tr.magic` 39 40error: question mark operator is useless here 41 --> $DIR/needless_question_mark.rs:59:12 42 | 43LL | return Ok(tr.magic?) 44 | ^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `tr.magic` 45 46error: question mark operator is useless here 47 --> $DIR/needless_question_mark.rs:63:5 48 | 49LL | Ok(tr.magic?) 50 | ^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `tr.magic` 51 52error: question mark operator is useless here 53 --> $DIR/needless_question_mark.rs:67:21 54 | 55LL | tr.and_then(|t| Ok(t.magic?)) 56 | ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `t.magic` 57 58error: question mark operator is useless here 59 --> $DIR/needless_question_mark.rs:75:9 60 | 61LL | Ok(t.magic?) 62 | ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `t.magic` 63 64error: question mark operator is useless here 65 --> $DIR/needless_question_mark.rs:82:16 66 | 67LL | return Ok(t.magic?); 68 | ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `t.magic` 69 70error: question mark operator is useless here 71 --> $DIR/needless_question_mark.rs:117:27 72 | 73LL | || -> Option<_> { Some(Some($expr)?) }() 74 | ^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `Some($expr)` 75... 76LL | let _x = some_and_qmark_in_macro!(x?); 77 | ---------------------------- in this macro invocation 78 | 79 = note: this error originates in the macro `some_and_qmark_in_macro` (in Nightly builds, run with -Z macro-backtrace for more info) 80 81error: question mark operator is useless here 82 --> $DIR/needless_question_mark.rs:128:5 83 | 84LL | Some(to.magic?) 85 | ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic` 86 87error: question mark operator is useless here 88 --> $DIR/needless_question_mark.rs:136:5 89 | 90LL | Ok(s.magic?) 91 | ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `s.magic` 92 93error: aborting due to 14 previous errors 94