fix: missing Read + Write #295
GitHub Actions / clippy ubuntu-latest
failed
May 24, 2024 in 0s
clippy ubuntu-latest
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.78.0 (9b00956e5 2024-04-29)
- cargo 1.78.0 (54d8815d0 2024-03-26)
- clippy 0.1.78 (9b00956 2024-04-29)
Annotations
Check failure on line 218 in crates/shadowsocks-service/src/local/tun/mod.rs
github-actions / clippy ubuntu-latest
this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
error: this comparison involving the minimum or maximum element for this type contains a case that is always true or always false
--> crates/shadowsocks-service/src/local/tun/mod.rs:218:24
|
218 | if n <= IFF_PI_PREFIX_LEN {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: because `IFF_PI_PREFIX_LEN` is the minimum value for this type, the case where the two sides are not equal never occurs, consider using `n == IFF_PI_PREFIX_LEN` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#absurd_extreme_comparisons
= note: `#[deny(clippy::absurd_extreme_comparisons)]` on by default
Loading