File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments