Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7a7faf6

Browse files
committed
Fix formatting
1 parent 4fc3ce7 commit 7a7faf6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

crates/core_simd/src/swizzle.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ pub trait Swizzle<const N: usize> {
9797
while i < N {
9898
let index = Self::INDEX[i];
9999
assert!(index as u32 as usize == index);
100-
assert!(index < M, "source element index exceeds input vector length");
100+
assert!(
101+
index < M,
102+
"source element index exceeds input vector length"
103+
);
101104
output[i] = index as u32;
102105
i += 1;
103106
}
@@ -130,7 +133,10 @@ pub trait Swizzle<const N: usize> {
130133
while i < N {
131134
let index = Self::INDEX[i];
132135
assert!(index as u32 as usize == index);
133-
assert!(index < 2 * M, "source element index exceeds input vector length");
136+
assert!(
137+
index < 2 * M,
138+
"source element index exceeds input vector length"
139+
);
134140
output[i] = index as u32;
135141
i += 1;
136142
}

0 commit comments

Comments
 (0)