aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-semver/src/constraint/match_all_constraint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-semver/src/constraint/match_all_constraint.rs')
-rw-r--r--crates/shirabe-semver/src/constraint/match_all_constraint.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/shirabe-semver/src/constraint/match_all_constraint.rs b/crates/shirabe-semver/src/constraint/match_all_constraint.rs
index 97ce98c..41aa32d 100644
--- a/crates/shirabe-semver/src/constraint/match_all_constraint.rs
+++ b/crates/shirabe-semver/src/constraint/match_all_constraint.rs
@@ -8,6 +8,20 @@ pub struct MatchAllConstraint {
pub(crate) pretty_string: Option<String>,
}
+impl MatchAllConstraint {
+ pub fn new() -> Self {
+ Self {
+ pretty_string: None,
+ }
+ }
+}
+
+impl Default for MatchAllConstraint {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl ConstraintInterface for MatchAllConstraint {
fn matches(&self, _provider: &dyn ConstraintInterface) -> bool {
true