From 9faf73a18ed1ee8a1c9c20c5adb723791dc7dfdf Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 16 May 2026 23:43:37 +0900 Subject: feat(port): add as_any/is_disjunctive to ConstraintInterface (needed for MultiConstraint) --- crates/shirabe-semver/src/constraint/match_none_constraint.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/shirabe-semver/src/constraint/match_none_constraint.rs') diff --git a/crates/shirabe-semver/src/constraint/match_none_constraint.rs b/crates/shirabe-semver/src/constraint/match_none_constraint.rs index 5bfc6ea..4add794 100644 --- a/crates/shirabe-semver/src/constraint/match_none_constraint.rs +++ b/crates/shirabe-semver/src/constraint/match_none_constraint.rs @@ -34,6 +34,10 @@ impl ConstraintInterface for MatchNoneConstraint { "[]".to_string() } + fn as_any(&self) -> &dyn std::any::Any { + self + } + fn get_upper_bound(&self) -> Bound { Bound::new("0.0.0.0-dev".to_string(), false) } -- cgit v1.3.1