diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 15:08:03 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 15:08:03 +0900 |
| commit | 748e741f740ac46ec40e42679aba3b07927709c0 (patch) | |
| tree | 31f01831b11613631ba68da047abf1a9aa43f1b0 /crates/shirabe-external-packages/src/composer/semver | |
| parent | 79bcd3a9ce71954ce7b257e5f3ca1c147c0d974a (diff) | |
| download | php-shirabe-748e741f740ac46ec40e42679aba3b07927709c0.tar.gz php-shirabe-748e741f740ac46ec40e42679aba3b07927709c0.tar.zst php-shirabe-748e741f740ac46ec40e42679aba3b07927709c0.zip | |
chore: cargo clippy --fix
Diffstat (limited to 'crates/shirabe-external-packages/src/composer/semver')
3 files changed, 11 insertions, 13 deletions
diff --git a/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs b/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs index dea5475..5a8f09d 100644 --- a/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs +++ b/crates/shirabe-external-packages/src/composer/semver/compiling_matcher.rs @@ -1,18 +1,16 @@ -use shirabe_php_shim::PhpMixed; - #[derive(Debug)] pub struct CompilingMatcher; impl CompilingMatcher { - pub fn r#match(constraint: &dyn std::any::Any, package: &dyn std::any::Any) -> bool { + pub fn r#match(_constraint: &dyn std::any::Any, _package: &dyn std::any::Any) -> bool { todo!() } - pub fn matches(constraint: &dyn std::any::Any, operator: &str, version: &str) -> bool { + pub fn matches(_constraint: &dyn std::any::Any, _operator: &str, _version: &str) -> bool { todo!() } - pub fn match_(constraint: &dyn std::any::Any, operator: &str, version: &str) -> bool { + pub fn match_(_constraint: &dyn std::any::Any, _operator: &str, _version: &str) -> bool { todo!() } diff --git a/crates/shirabe-external-packages/src/composer/semver/intervals.rs b/crates/shirabe-external-packages/src/composer/semver/intervals.rs index 957436d..d0a736c 100644 --- a/crates/shirabe-external-packages/src/composer/semver/intervals.rs +++ b/crates/shirabe-external-packages/src/composer/semver/intervals.rs @@ -5,21 +5,21 @@ pub struct Intervals; impl Intervals { pub fn is_subset_of( - constraint_a: &dyn std::any::Any, - constraint_b: &dyn std::any::Any, + _constraint_a: &dyn std::any::Any, + _constraint_b: &dyn std::any::Any, ) -> anyhow::Result<bool> { todo!() } - pub fn compact_constraint(constraint: &dyn std::any::Any) -> Box<dyn std::any::Any> { + pub fn compact_constraint(_constraint: &dyn std::any::Any) -> Box<dyn std::any::Any> { todo!() } - pub fn compact(constraint: &dyn std::any::Any) -> Box<dyn std::any::Any> { + pub fn compact(_constraint: &dyn std::any::Any) -> Box<dyn std::any::Any> { todo!() } - pub fn get(constraint: &dyn std::any::Any) -> anyhow::Result<PhpMixed> { + pub fn get(_constraint: &dyn std::any::Any) -> anyhow::Result<PhpMixed> { todo!() } diff --git a/crates/shirabe-external-packages/src/composer/semver/semver.rs b/crates/shirabe-external-packages/src/composer/semver/semver.rs index f467c2c..fe370d8 100644 --- a/crates/shirabe-external-packages/src/composer/semver/semver.rs +++ b/crates/shirabe-external-packages/src/composer/semver/semver.rs @@ -2,15 +2,15 @@ pub struct Semver; impl Semver { - pub fn sort(versions: Vec<String>) -> anyhow::Result<Vec<String>> { + pub fn sort(_versions: Vec<String>) -> anyhow::Result<Vec<String>> { todo!() } - pub fn rsort(versions: Vec<String>) -> Vec<String> { + pub fn rsort(_versions: Vec<String>) -> Vec<String> { todo!() } - pub fn satisfies(version: &str, constraint: &str) -> bool { + pub fn satisfies(_version: &str, _constraint: &str) -> bool { todo!() } } |
