File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,14 +137,14 @@ impl<const N: usize> super::Allocator<N> for Allocator<N> {
137137 // Mark all bits in the middle words as used.
138138 {
139139 let mid_cnt = len / Self :: BITS_PER_WORD ;
140-
140+
141141 for i in 0 ..mid_cnt {
142142 self . l1 [ idx + i] = 0 ;
143143 }
144144
145145 idx += mid_cnt;
146146 }
147-
147+
148148 // Mark the remaining bits in the last word as used.
149149 self . l1 [ idx] &= !( ( !0usize ) . unbounded_shl ( ( Self :: BITS_PER_WORD - ( len % Self :: BITS_PER_WORD ) ) as u32 ) ) ;
150150 return Some ( self . begin + ( start * super :: PAGE_SIZE ) ) ;
@@ -193,9 +193,9 @@ mod tests {
193193
194194 #[ test]
195195 fn test_random_pattern ( ) {
196- const ITARATIONS : usize = 1000 ;
196+ const ITERATIONS : usize = 1000 ;
197197
198- for i in 0 ..ITARATIONS {
198+ for _ in 0 ..ITERATIONS {
199199 const N : usize = 1024 ;
200200 const BITS : usize = Allocator :: < N > :: BITS_PER_WORD ;
201201 const ALLOC_SIZE : usize = 100 ;
You can’t perform that action at this time.
0 commit comments