Fix detection of CET shadow stacks #316
Annotations
15 warnings
this `map_or` can be simplified:
src/lib.rs#L901
warning: this `map_or` can be simplified
--> 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());
|
|
operator precedence can trip the unwary:
src/lib.rs#L5066
warning: operator precedence can trip the unwary
--> src/lib.rs:5066:21
|
5066 | let upper = self.ecx1 as u64 | (self.edx1 as u64) << 32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `self.ecx1 as u64 | ((self.edx1 as u64) << 32)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/lib.rs#L5065
warning: operator precedence can trip the unwary
--> src/lib.rs:5065:21
|
5065 | let lower = self.eax1 as u64 | (self.ebx1 as u64) << 32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `self.eax1 as u64 | ((self.ebx1 as u64) << 32)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/lib.rs#L1809
warning: operator precedence can trip the unwary
--> src/lib.rs:1809:9
|
1809 | (self.serial_lower() as u64) | (self.serial_middle() as u64) << 32
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(self.serial_lower() as u64) | ((self.serial_middle() as u64) << 32)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
= note: `#[warn(clippy::precedence)]` on by default
|
ci (nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci (nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
ci (nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
ci (nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
ci (nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
this `map_or` is redundant:
src/lib.rs#L901
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());
|
|
ci (stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
ci (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
ci (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
ci (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|