Skip to content

Commit

Permalink
Return references from ObjectIters methods
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jul 21, 2022
1 parent 7b94db0 commit 8d71235
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 127 deletions.
4 changes: 2 additions & 2 deletions crates/fj-kernel/src/algorithms/sweep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn sweep(

for face in source.face_iter() {
create_bottom_faces(
&face,
face,
is_sweep_along_negative_direction,
&mut target,
);
Expand Down Expand Up @@ -314,7 +314,7 @@ mod tests {
});

for face in faces {
assert!(solid.face_iter().any(|f| f == face));
assert!(solid.face_iter().any(|f| f == &face));
}

Ok(())
Expand Down
Loading

0 comments on commit 8d71235

Please sign in to comment.