aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-semver/src/constraint/bound.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-28 17:45:06 +0900
committernsfisis <nsfisis@gmail.com>2026-06-28 17:45:26 +0900
commit53f1fb395f33e0fb8db9aebd09ea9082f650f9f1 (patch)
treef9e8bf0e9d4b1e98cce383574fb6a13b684fff08 /crates/shirabe-semver/src/constraint/bound.rs
parent212f5cd75b1403ee75ffa44d7ebdb181174340c0 (diff)
downloadphp-shirabe-53f1fb395f33e0fb8db9aebd09ea9082f650f9f1.tar.gz
php-shirabe-53f1fb395f33e0fb8db9aebd09ea9082f650f9f1.tar.zst
php-shirabe-53f1fb395f33e0fb8db9aebd09ea9082f650f9f1.zip
refactor: add linter
Diffstat (limited to 'crates/shirabe-semver/src/constraint/bound.rs')
-rw-r--r--crates/shirabe-semver/src/constraint/bound.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/shirabe-semver/src/constraint/bound.rs b/crates/shirabe-semver/src/constraint/bound.rs
index 8e45023..2590424 100644
--- a/crates/shirabe-semver/src/constraint/bound.rs
+++ b/crates/shirabe-semver/src/constraint/bound.rs
@@ -2,8 +2,6 @@
use anyhow::bail;
-use shirabe_php_shim as php;
-
#[derive(Debug, Clone, PartialEq)]
pub struct Bound {
version: String,
@@ -43,7 +41,8 @@ impl Bound {
return Ok(false);
}
- let compare_result = php::version_compare_2(self.get_version(), other.get_version());
+ let compare_result =
+ shirabe_php_shim::version_compare_2(self.get_version(), other.get_version());
if compare_result != 0 {
return Ok((if operator == ">" { 1 } else { -1 }) == compare_result);