Skip to content

Cargo: Bump 0.25.1 #1517

Cargo: Bump 0.25.1

Cargo: Bump 0.25.1 #1517

GitHub Actions / clippy failed Jan 9, 2025 in 0s

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

See this annotation in the file changed.

@github-actions 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__