GitHub Actions / clippy
failed
Nov 4, 2024 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.84.0-nightly (b8c8287a2 2024-11-03)
- cargo 1.84.0-nightly (031049782 2024-11-01)
- clippy 0.1.84 (b8c8287a22 2024-11-03)
Annotations
Check failure on line 194 in src/inflight.rs
github-actions / clippy
this if-then-else expression returns a bool literal
error: this if-then-else expression returns a bool literal
--> src/inflight.rs:188:9
|
188 | / if (self.max_cap == 0 || self.cur_cap.get() < self.max_cap)
189 | | && (self.max_size == 0 || self.cur_size.get() <= self.max_size)
190 | | {
191 | | true
192 | | } else {
193 | | false
194 | | }
| |_________^ help: you can reduce it to: `(self.max_cap == 0 || self.cur_cap.get() < self.max_cap) && (self.max_size == 0 || self.cur_size.get() <= self.max_size)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
note: the lint level is defined here
--> src/lib.rs:1:27
|
1 | #![deny(rust_2018_idioms, warnings, unreachable_pub)]
| ^^^^^^^^
= note: `#[deny(clippy::needless_bool)]` implied by `#[deny(warnings)]`
Loading