Skip to content

Commit

Permalink
Remove redundant closure / anonymous function (#11027)
Browse files Browse the repository at this point in the history
Replace map(|x| f(x)) with map(f)
  • Loading branch information
jlapeyre authored Oct 16, 2023
1 parent 458ad13 commit 63283dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/accelerate/src/sabre_swap/neighbor_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ impl NeighborTable {
adj_mat
.axis_iter(Axis(0))
.into_par_iter()
.map(|row| build_neighbors(row))
.map(build_neighbors)
.collect::<PyResult<_>>()?
} else {
adj_mat
.axis_iter(Axis(0))
.map(|row| build_neighbors(row))
.map(build_neighbors)
.collect::<PyResult<_>>()?
}
}
Expand Down

0 comments on commit 63283dc

Please sign in to comment.