Commit 39ac89e
committed
Resolve manual_let_else pedantic clippy lint
warning: this could be rewritten as `let...else`
--> build.rs:8:5
|
8 | / let minor = match rustc_minor_version() {
9 | | Some(minor) => minor,
10 | | None => return,
11 | | };
| |______^ help: consider writing: `let Some(minor) = rustc_minor_version() else { return };`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
= note: `-W clippy::manual-let-else` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::manual_let_else)]`
warning: this could be rewritten as `let...else`
--> src/spanned.rs:31:5
|
31 | / let first = match iter.next() {
32 | | Some(span) => span,
33 | | None => return Span::call_site(),
34 | | };
| |______^ help: consider writing: `let Some(first) = iter.next() else { return Span::call_site() };`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
= note: `-W clippy::manual-let-else` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::manual_let_else)]`1 parent f3eac36 commit 39ac89e
2 files changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
0 commit comments