Fix formatting
This commit is contained in:
parent
4fc3ce733d
commit
7a7faf6cc6
1 changed files with 8 additions and 2 deletions
|
|
@ -97,7 +97,10 @@ pub trait Swizzle<const N: usize> {
|
|||
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<const N: usize> {
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue