diff options
Diffstat (limited to 'crates/shirabe-semver/src/constraint/match_none_constraint.rs')
| -rw-r--r-- | crates/shirabe-semver/src/constraint/match_none_constraint.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/shirabe-semver/src/constraint/match_none_constraint.rs b/crates/shirabe-semver/src/constraint/match_none_constraint.rs index 4add794..17a45bb 100644 --- a/crates/shirabe-semver/src/constraint/match_none_constraint.rs +++ b/crates/shirabe-semver/src/constraint/match_none_constraint.rs @@ -34,6 +34,12 @@ impl ConstraintInterface for MatchNoneConstraint { "[]".to_string() } + fn clone_box(&self) -> Box<dyn ConstraintInterface> { + Box::new(MatchNoneConstraint { + pretty_string: self.pretty_string.clone(), + }) + } + fn as_any(&self) -> &dyn std::any::Any { self } |
