🎨 reduce nesting in config read function #1006
ci.yml
on: push
Debounce
0s
Lint
/
fmt
6s
Lint
/
clippy
10s
Lint
/
msrv
21s
Lint
/
actionlint
7s
Lint
/
renovate-linter
34s
Matrix: Test
Matrix: Release / build
Annotations
1 warning and 1 notice
this could be rewritten as `let...else`:
src/modules/config.rs#L57
warning: this could be rewritten as `let...else`
--> src/modules/config.rs:57:3
|
57 | let file = if let Ok(f) = file { f } else { return config };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider writing: `let Ok(file) = file else { return config };`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
note: the lint level is defined here
--> src/main.rs:2:9
|
2 | #![warn(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::manual_let_else)]` implied by `#[warn(clippy::pedantic)]`
|
13 tests found
There are 13 tests, see "Raw output" for the full list of tests.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
wthrr-linux-x86_64
|
6.11 MB |
|
wthrr-macos-arm64
|
1.98 MB |
|
wthrr-macos-x86_64
|
2.06 MB |
|
wthrr-windows-x86_64
|
2.16 MB |
|