aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-semver/src/interval.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-19 00:10:22 +0900
committernsfisis <nsfisis@gmail.com>2026-05-19 00:11:03 +0900
commitc839244d8d09f3036ebfee8eef7eb6b147e593ab (patch)
treefe48c94f2c2e62468beef5ff1a8f3cff6adeef4f /crates/shirabe-semver/src/interval.rs
parent48839250146b217e2756ed3c0e624fd341b54d6c (diff)
downloadphp-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.gz
php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.zst
php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.zip
fix(compile): fix various compile errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-semver/src/interval.rs')
-rw-r--r--crates/shirabe-semver/src/interval.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/shirabe-semver/src/interval.rs b/crates/shirabe-semver/src/interval.rs
index cf4f481..237ad0b 100644
--- a/crates/shirabe-semver/src/interval.rs
+++ b/crates/shirabe-semver/src/interval.rs
@@ -31,14 +31,13 @@ impl Interval {
pub fn from_zero() -> &'static Constraint {
static ZERO: OnceLock<Constraint> = OnceLock::new();
- ZERO.get_or_init(|| Constraint::new(">=".to_string(), "0.0.0.0-dev".to_string()).unwrap())
+ ZERO.get_or_init(|| Constraint::new(">=".to_string(), "0.0.0.0-dev".to_string()))
}
pub fn until_positive_infinity() -> &'static Constraint {
static POSITIVE_INFINITY: OnceLock<Constraint> = OnceLock::new();
- POSITIVE_INFINITY.get_or_init(|| {
- Constraint::new("<".to_string(), format!("{}.0.0.0", i64::MAX)).unwrap()
- })
+ POSITIVE_INFINITY
+ .get_or_init(|| Constraint::new("<".to_string(), format!("{}.0.0.0", i64::MAX)))
}
pub fn any() -> Self {