Skip to content

Commit be20f62

Browse files
a4lgAmanieu
authored andcommitted
silence clippy::eq_op while checking
This error occurs when the RISC-V "A" Extension is being tested.
1 parent ebe8804 commit be20f62

File tree

1 file changed

+1
-0
lines changed
  • library/stdarch/crates/std_detect/src/detect/os/linux

1 file changed

+1
-0
lines changed

library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
2323
//
2424
// [hwcap]: https://github.com/torvalds/linux/blob/master/arch/riscv/include/asm/hwcap.h
2525
let auxv = auxvec::auxv().expect("read auxvec"); // should not fail on RISC-V platform
26+
#[allow(clippy::eq_op)]
2627
enable_feature(
2728
&mut value,
2829
Feature::a,

0 commit comments

Comments
 (0)