File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ impl Manager {
162162 ChunkState {
163163 chunk,
164164 slot,
165- renderable : slot. map_or ( false , |idx| self . chunks [ idx as usize ] . ready ) ,
165+ renderable : slot. is_some_and ( |idx| self . chunks [ idx as usize ] . ready ) ,
166166 } ,
167167 ) ;
168168 }
@@ -224,7 +224,7 @@ impl Manager {
224224 let children_renderable = chunk. renderable // this subtree should be rendered at all, and
225225 && child_slots // every child is already resident in the cache
226226 . iter ( )
227- . all ( |slot| slot. map_or ( false , |x| self . chunks [ x as usize ] . ready ) ) ;
227+ . all ( |slot| slot. is_some_and ( |x| self . chunks [ x as usize ] . ready ) ) ;
228228 // If this subtree should be rendered and the children can't be rendered, this chunk must be rendered.
229229 if chunk. renderable && !children_renderable {
230230 self . render
Original file line number Diff line number Diff line change @@ -886,7 +886,7 @@ where
886886 fn size_hint ( & self ) -> ( usize , Option < usize > ) {
887887 let total = self . chunk_resolution * self . chunk_resolution ;
888888 let remaining = ( total - self . index ) as usize ;
889- let x = ( remaining + S :: LANES - 1 ) / S :: LANES ;
889+ let x = remaining. div_ceil ( S :: LANES ) ;
890890 ( x, Some ( x) )
891891 }
892892}
You can’t perform that action at this time.
0 commit comments