mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-25 11:36:38 +00:00
Remove redundant .collect()
This commit is contained in:
parent
c18a40fda6
commit
193783ab42
@ -87,10 +87,7 @@ impl Aabb<3> {
|
||||
pub fn from_points(
|
||||
points: impl IntoIterator<Item = impl Into<Point<3>>>,
|
||||
) -> Self {
|
||||
let points: Vec<_> = points
|
||||
.into_iter()
|
||||
.map(|point| point.into().to_na())
|
||||
.collect();
|
||||
let points = points.into_iter().map(|point| point.into().to_na());
|
||||
parry3d_f64::bounding_volume::Aabb::from_points(points).into()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user