Make clippy a bit happier

This commit is contained in:
Emil Ernerfeldt
2021-02-04 13:11:04 +01:00
parent 88cde90425
commit 85bc81d4fc
15 changed files with 48 additions and 33 deletions

View File

@@ -162,7 +162,7 @@ impl PhysicsPipeline {
self.counters.stages.solver_time.start();
if self.solvers.len() < bodies.num_islands() {
self.solvers
.resize_with(bodies.num_islands(), || IslandSolver::new());
.resize_with(bodies.num_islands(), IslandSolver::new);
}
#[cfg(not(feature = "parallel"))]