Skip to content

Commit af53b5d

Browse files
#279: Silence clippy false alarms
1 parent 9718639 commit af53b5d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/core_simd/src/ops.rs

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ macro_rules! unsafe_base {
4848
// cg_clif defaults to this, and scalar MIR shifts also default to wrapping
4949
macro_rules! wrap_bitshift {
5050
($lhs:ident, $rhs:ident, {$simd_call:ident}, $int:ident) => {
51+
#[allow(clippy::suspicious_arithmetic_impl)]
5152
unsafe {
5253
$crate::simd::intrinsics::$simd_call(
5354
$lhs,

crates/core_simd/src/vector.rs

+1
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ where
479479
mask.all()
480480
}
481481

482+
#[allow(clippy::partialeq_ne_impl)]
482483
#[inline]
483484
fn ne(&self, other: &Self) -> bool {
484485
// Safety: All SIMD vectors are SimdPartialEq, and the comparison produces a valid mask.

0 commit comments

Comments
 (0)