Skip to content

Commit

Permalink
Merge pull request #2300 from hannobraun/validation
Browse files Browse the repository at this point in the history
Make small cleanups in validation code
  • Loading branch information
hannobraun authored Mar 27, 2024
2 parents 8b21004 + 5055eea commit 4699d6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@ impl Validate for HalfEdge {
) {
}
}

/// [`HalfEdge`] validation failed
#[derive(Clone, Debug, thiserror::Error)]
pub enum EdgeValidationError {}
6 changes: 3 additions & 3 deletions crates/fj-core/src/validate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
mod curve;
mod cycle;
mod edge;
mod face;
mod half_edge;
mod references;
mod region;
mod shell;
Expand All @@ -79,8 +79,8 @@ use crate::{
};

pub use self::{
edge::EdgeValidationError, shell::ShellValidationError,
sketch::SketchValidationError, solid::SolidValidationError,
shell::ShellValidationError, sketch::SketchValidationError,
solid::SolidValidationError,
};

/// Assert that some object has a validation error which matches a specific
Expand Down
7 changes: 1 addition & 6 deletions crates/fj-core/src/validation/error.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use std::{convert::Infallible, fmt};

use crate::validate::{
EdgeValidationError, ShellValidationError, SketchValidationError,
SolidValidationError,
ShellValidationError, SketchValidationError, SolidValidationError,
};

use super::checks::{
Expand All @@ -25,10 +24,6 @@ pub enum ValidationError {
#[error(transparent)]
InteriorCycleHasInvalidWinding(#[from] InteriorCycleHasInvalidWinding),

/// `Edge` validation error
#[error("`Edge` validation error")]
Edge(#[from] EdgeValidationError),

/// `Shell` validation error
#[error("`Shell` validation error")]
Shell(#[from] ShellValidationError),
Expand Down

0 comments on commit 4699d6d

Please sign in to comment.