Skip to content

Commit

Permalink
avoid implementing defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jan 4, 2024
1 parent 0238253 commit fcb6342
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/ops/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,20 +313,7 @@ impl ValidateOp for DFB {
}
}

impl ValidateOp for Exit {
/// Returns the set of allowed parent operation types.
fn validity_flags(&self) -> OpValidityFlags {
Default::default()
}

/// Validate the ordered list of children.
fn validate_op_children<'a>(
&self,
_children: impl DoubleEndedIterator<Item = (NodeIndex, &'a OpType)>,
) -> Result<(), ChildrenValidationError> {
Ok(())
}
}
impl ValidateOp for Exit {}

impl ValidateOp for super::Case {
/// Returns the set of allowed parent operation types.
Expand Down

0 comments on commit fcb6342

Please sign in to comment.