Skip to content

Commit

Permalink
Remove unused macro parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed May 24, 2024
1 parent e64bc24 commit 40a85af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/fj-core/src/validate/references.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<T, U> ReferenceCounter<T, U> {
/// Find errors and convert to [`crate::validate::ValidationError`]
#[macro_export]
macro_rules! validate_references {
($errors:ident, $error_ty:ty;$($counter:ident, $err:ident;)*) => {
($errors:ident;$($counter:ident, $err:ident;)*) => {
$(
$counter.find_multiples().iter().for_each(|multiple| {
let reference_error = ValidationError::$err(multiple.clone());
Expand Down
2 changes: 1 addition & 1 deletion crates/fj-core/src/validate/sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl SketchValidationError {
});

validate_references!(
errors, SketchValidationError;
errors;
referenced_edges, MultipleReferencesToHalfEdge;
referenced_cycles, MultipleReferencesToCycle;
);
Expand Down
2 changes: 1 addition & 1 deletion crates/fj-core/src/validate/solid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl SolidValidationError {
});

validate_references!(
errors, SolidValidationError;
errors;
referenced_regions, MultipleReferencesToRegion;
referenced_faces, MultipleReferencesToFace;
referenced_edges, MultipleReferencesToHalfEdge;
Expand Down

0 comments on commit 40a85af

Please sign in to comment.