Skip to content

Commit

Permalink
Return Handles from GlobalCurveIter
Browse files Browse the repository at this point in the history
This is what objects are actually referencing, so it makes sense to
return it.
  • Loading branch information
hannobraun committed Sep 27, 2022
1 parent 8f8606e commit 2fa1396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fj-kernel/src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub trait ObjectIters<'r> {
}

/// Iterate over all global curves
fn global_curve_iter(&'r self) -> Iter<&'r GlobalCurve> {
fn global_curve_iter(&'r self) -> Iter<&'r Handle<GlobalCurve>> {
let mut iter = Iter::empty();

for object in self.referenced_objects() {
Expand Down Expand Up @@ -187,7 +187,7 @@ impl<'r> ObjectIters<'r> for Handle<GlobalCurve> {
Vec::new()
}

fn global_curve_iter(&'r self) -> Iter<&'r GlobalCurve> {
fn global_curve_iter(&'r self) -> Iter<&'r Handle<GlobalCurve>> {
Iter::from_object(self)
}
}
Expand Down

0 comments on commit 2fa1396

Please sign in to comment.