diff --git a/crates/core_simd/src/swizzle.rs b/crates/core_simd/src/swizzle.rs index fb257e34cf99..48aebba91fd2 100644 --- a/crates/core_simd/src/swizzle.rs +++ b/crates/core_simd/src/swizzle.rs @@ -97,7 +97,10 @@ pub trait Swizzle { while i < N { let index = Self::INDEX[i]; assert!(index as u32 as usize == index); - assert!(index < M, "source element index exceeds input vector length"); + assert!( + index < M, + "source element index exceeds input vector length" + ); output[i] = index as u32; i += 1; } @@ -130,7 +133,10 @@ pub trait Swizzle { while i < N { let index = Self::INDEX[i]; assert!(index as u32 as usize == index); - assert!(index < 2 * M, "source element index exceeds input vector length"); + assert!( + index < 2 * M, + "source element index exceeds input vector length" + ); output[i] = index as u32; i += 1; }