From c839244d8d09f3036ebfee8eef7eb6b147e593ab Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 00:10:22 +0900 Subject: fix(compile): fix various compile errors Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe-semver/src/interval.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crates/shirabe-semver/src/interval.rs') 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 = 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 = 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 { -- cgit v1.3.1