Skip to content

Commit

Permalink
Merge pull request #46 from waywardmonkeys/clippy-clone_on_copy
Browse files Browse the repository at this point in the history
Fix `clippy::clone_on_copy` lints
  • Loading branch information
LukasKalbertodt authored Dec 3, 2024
2 parents b6cddfb + cb7bad0 commit e7e9fbb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/core/directed_edge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ impl<C: Config> Copy for HalfEdge<C> {}
impl<C: Config> Clone for HalfEdge<C> {
fn clone(&self) -> Self {
Self {
twin: self.twin.clone(),
target: self.target.clone(),
next: self.next.clone(),
prev: self.prev.clone(),
twin: self.twin,
target: self.target,
next: self.next,
prev: self.prev,
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/core/half_edge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ impl<C: Config> Copy for HalfEdge<C> {}
impl<C: Config> Clone for HalfEdge<C> {
fn clone(&self) -> Self {
Self {
face: self.face.clone(),
target: self.target.clone(),
next: self.next.clone(),
prev: self.prev.clone(),
face: self.face,
target: self.target,
next: self.next,
prev: self.prev,
}
}
}
Expand Down

0 comments on commit e7e9fbb

Please sign in to comment.