Fix detection of CET shadow stacks #316
GitHub Actions / clippy
succeeded
Jan 14, 2025 in 0s
clippy
1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.84.0 (9fc6b4312 2025-01-07)
- cargo 1.84.0 (66221abde 2024-11-19)
- clippy 0.1.84 (9fc6b43126 2025-01-07)
Annotations
Check warning on line 903 in src/lib.rs
github-actions / clippy
this `map_or` is redundant
warning: this `map_or` is redundant
--> src/lib.rs:901:23
|
901 | let has_svm = self
| _______________________^
902 | | .get_extended_processor_and_feature_identifiers()
903 | | .map_or(false, |f| f.has_svm());
| |___________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `#[warn(clippy::unnecessary_map_or)]` on by default
help: use is_some_and instead
|
901 ~ let has_svm = self
902 ~ .get_extended_processor_and_feature_identifiers().is_some_and(|f| f.has_svm());
|
Loading