Tech debt #466
GitHub Actions / clippy
failed
Sep 19, 2024 in 0s
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (1)
src/proto/single/utils.rs|60 col 14| warning: redundant closure
--> src/proto/single/utils.rs:60:14
|
60 | .map(|value| (Duration::from_secs(value))))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: Duration::from_secs
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: #[warn(clippy::redundant_closure)]
on by default
Filtered Findings (0)
Annotations
Check warning on line 60 in src/proto/single/utils.rs
github-actions / clippy
[clippy] src/proto/single/utils.rs#L60
warning: redundant closure
--> src/proto/single/utils.rs:60:14
|
60 | .map(|value| (Duration::from_secs(value))))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Duration::from_secs`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[warn(clippy::redundant_closure)]` on by default
Raw output
src/proto/single/utils.rs:60:14:w:warning: redundant closure
--> src/proto/single/utils.rs:60:14
|
60 | .map(|value| (Duration::from_secs(value))))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Duration::from_secs`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[warn(clippy::redundant_closure)]` on by default
__END__
Loading