Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: clippy - removed calls to .into_iter() where no needed. #1058

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion geo-types/src/geometry/geometry_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ where
return false;
}

let mut mp_zipper = self.into_iter().zip(other.into_iter());
let mut mp_zipper = self.into_iter().zip(other);
mp_zipper.all(|(lhs, rhs)| lhs.abs_diff_eq(rhs, epsilon))
}
}
Expand Down
2 changes: 1 addition & 1 deletion geo-types/src/geometry/multi_line_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ where
return false;
}

let mut mp_zipper = self.into_iter().zip(other.into_iter());
let mut mp_zipper = self.into_iter().zip(other);
mp_zipper.all(|(lhs, rhs)| lhs.abs_diff_eq(rhs, epsilon))
}
}
Expand Down
2 changes: 1 addition & 1 deletion geo-types/src/geometry/multi_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ where
return false;
}

let mut mp_zipper = self.into_iter().zip(other.into_iter());
let mut mp_zipper = self.into_iter().zip(other);
mp_zipper.all(|(lhs, rhs)| lhs.abs_diff_eq(rhs, epsilon))
}
}
Expand Down
2 changes: 1 addition & 1 deletion geo-types/src/geometry/multi_polygon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ where
return false;
}

let mut mp_zipper = self.into_iter().zip(other.into_iter());
let mut mp_zipper = self.into_iter().zip(other);
mp_zipper.all(|(lhs, rhs)| lhs.abs_diff_eq(rhs, epsilon))
}
}
Expand Down
4 changes: 2 additions & 2 deletions geo/src/algorithm/monotone/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! This implementation is based on these awesome [lecture notes] by David
//! Mount. The broad idea is to run a left-right planar sweep on the segments
//! of the polygon and try to iteratively extend parallel monotone chains.
//! of the polygon and try to iteratively extend parallel monotone chains.
//!
//! [lecture notes]:
//! //www.cs.umd.edu/class/spring2020/cmsc754/Lects/lect05-triangulate.pdf
Expand Down Expand Up @@ -41,7 +41,7 @@ impl<T: GeoNum> Builder<T> {
let (ext, ints) = polygon.into_inner();
Some(ext)
.into_iter()
.chain(ints.into_iter())
.chain(ints)
.flat_map(|ls| -> Vec<_> { ls.lines().collect() })
.filter_map(|line| {
if line.start == line.end {
Expand Down