Update argument name

This commit is contained in:
Hanno Braun 2023-12-21 20:12:18 +01:00
parent 699b499355
commit 00fb591128

View File

@ -9,7 +9,7 @@ pub trait UpdateCycle {
#[must_use] #[must_use]
fn add_half_edges( fn add_half_edges(
&self, &self,
edges: impl IntoIterator<Item = Handle<HalfEdge>>, half_edges: impl IntoIterator<Item = Handle<HalfEdge>>,
) -> Self; ) -> Self;
/// Update an edge of the cycle /// Update an edge of the cycle
@ -47,9 +47,9 @@ pub trait UpdateCycle {
impl UpdateCycle for Cycle { impl UpdateCycle for Cycle {
fn add_half_edges( fn add_half_edges(
&self, &self,
edges: impl IntoIterator<Item = Handle<HalfEdge>>, half_edges: impl IntoIterator<Item = Handle<HalfEdge>>,
) -> Self { ) -> Self {
let edges = self.half_edges().iter().cloned().chain(edges); let edges = self.half_edges().iter().cloned().chain(half_edges);
Cycle::new(edges) Cycle::new(edges)
} }