We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca9fcfb commit 63608edCopy full SHA for 63608ed
1 file changed
src/static_aabb2d_index.rs
@@ -210,12 +210,12 @@ where
210
);
211
212
#[cfg(not(feature = "unsafe_optimizations"))]
213
- let boxes = std::iter::repeat_with(|| AABB::default())
+ let boxes = std::iter::repeat_with(AABB::default)
214
.take(num_nodes)
215
.collect();
216
217
#[cfg(feature = "unsafe_optimizations")]
218
- let boxes = std::iter::repeat_with(|| std::mem::MaybeUninit::uninit())
+ let boxes = std::iter::repeat_with(std::mem::MaybeUninit::uninit)
219
220
221
0 commit comments