Skip to content

Commit 63608ed

Browse files
committed
Fix clippy lint
1 parent ca9fcfb commit 63608ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/static_aabb2d_index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ where
210210
);
211211

212212
#[cfg(not(feature = "unsafe_optimizations"))]
213-
let boxes = std::iter::repeat_with(|| AABB::default())
213+
let boxes = std::iter::repeat_with(AABB::default)
214214
.take(num_nodes)
215215
.collect();
216216

217217
#[cfg(feature = "unsafe_optimizations")]
218-
let boxes = std::iter::repeat_with(|| std::mem::MaybeUninit::uninit())
218+
let boxes = std::iter::repeat_with(std::mem::MaybeUninit::uninit)
219219
.take(num_nodes)
220220
.collect();
221221

0 commit comments

Comments
 (0)