Skip to content

🎨 reduce nesting in config read function #1006

🎨 reduce nesting in config read function

🎨 reduce nesting in config read function #1006

Triggered via push October 21, 2024 03:51
Status Success
Total duration 7m 12s
Artifacts 4

ci.yml

on: push
Debounce
0s
Debounce
Matrix: Test
Matrix: Release / build
Fit to window
Zoom out
Zoom in

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