Cargo: Bump 0.25.1 #1517
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (1)
boulder/src/draft/build.rs|121 col 27| warning: unnecessary closure used with bool::then
--> boulder/src/draft/build.rs:121:27
|
121 | fmt("networking", self.networking.then(|| true))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
= note: #[warn(clippy::unnecessary_lazy_evaluations)]
on by default
help: use then_some
instead
|
121 | fmt("networking", self.networking.then_some(true))
| ~~~~~~~~~~~~~~~
Filtered Findings (0)
Annotations
Check warning on line 121 in boulder/src/draft/build.rs
github-actions / clippy
[clippy] boulder/src/draft/build.rs#L121
warning: unnecessary closure used with `bool::then`
--> boulder/src/draft/build.rs:121:27
|
121 | fmt("networking", self.networking.then(|| true))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
= note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
help: use `then_some` instead
|
121 | fmt("networking", self.networking.then_some(true))
| ~~~~~~~~~~~~~~~
Raw output
boulder/src/draft/build.rs:121:27:w:warning: unnecessary closure used with `bool::then`
--> boulder/src/draft/build.rs:121:27
|
121 | fmt("networking", self.networking.then(|| true))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
= note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
help: use `then_some` instead
|
121 | fmt("networking", self.networking.then_some(true))
| ~~~~~~~~~~~~~~~
__END__