Skip to content

Commit

Permalink
Merge pull request #2096 from hannobraun/validate
Browse files Browse the repository at this point in the history
Improve `Cycle` validation error
  • Loading branch information
hannobraun authored Nov 15, 2023
2 parents 18d768c + 95ea141 commit 30698cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/fj-core/src/validate/cycle.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use fj_math::{Point, Scalar};

use crate::objects::{Cycle, HalfEdge};
use crate::{
objects::{Cycle, HalfEdge},
storage::Handle,
};

use super::{Validate, ValidationConfig, ValidationError};

Expand Down Expand Up @@ -36,7 +39,7 @@ pub enum CycleValidationError {
distance: Scalar,

/// The edges
half_edges: Box<(HalfEdge, HalfEdge)>,
half_edges: [Handle<HalfEdge>; 2],
},
}

Expand All @@ -61,10 +64,7 @@ impl CycleValidationError {
end_of_first,
start_of_second,
distance,
half_edges: Box::new((
first.clone_object(),
second.clone_object(),
)),
half_edges: [first.clone(), second.clone()],
}
.into(),
);
Expand Down

0 comments on commit 30698cf

Please sign in to comment.