From be20f62a204605d798b858ce7f9b32f52f3eab08 Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Fri, 21 Mar 2025 05:32:09 +0000 Subject: silence `clippy::eq_op` while checking This error occurs when the RISC-V "A" Extension is being tested. --- library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'library/stdarch/crates/std_detect/src') diff --git a/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs b/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs index d3865cb5e9e..2a9671d75dd 100644 --- a/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs +++ b/library/stdarch/crates/std_detect/src/detect/os/linux/riscv.rs @@ -23,6 +23,7 @@ pub(crate) fn detect_features() -> cache::Initializer { // // [hwcap]: https://github.com/torvalds/linux/blob/master/arch/riscv/include/asm/hwcap.h let auxv = auxvec::auxv().expect("read auxvec"); // should not fail on RISC-V platform + #[allow(clippy::eq_op)] enable_feature( &mut value, Feature::a, -- cgit 1.4.1-3-g733a5