From 748e741f740ac46ec40e42679aba3b07927709c0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 15:08:03 +0900 Subject: chore: cargo clippy --fix --- .../src/composer/ca_bundle/ca_bundle.rs | 4 +- .../metadata_minifier/metadata_minifier.rs | 4 +- .../src/composer/pcre/preg.rs | 430 ++++++++++----------- .../src/composer/semver/compiling_matcher.rs | 8 +- .../src/composer/semver/intervals.rs | 10 +- .../src/composer/semver/semver.rs | 6 +- .../src/composer/spdx_licenses/spdx_licenses.rs | 10 +- .../src/composer/util/composer_mirror.rs | 26 +- 8 files changed, 256 insertions(+), 242 deletions(-) (limited to 'crates/shirabe-external-packages/src/composer') diff --git a/crates/shirabe-external-packages/src/composer/ca_bundle/ca_bundle.rs b/crates/shirabe-external-packages/src/composer/ca_bundle/ca_bundle.rs index 4a980c6..a0db297 100644 --- a/crates/shirabe-external-packages/src/composer/ca_bundle/ca_bundle.rs +++ b/crates/shirabe-external-packages/src/composer/ca_bundle/ca_bundle.rs @@ -8,11 +8,11 @@ impl CaBundle { todo!() } - pub fn get_system_ca_root_bundle_path(logger: Option<&dyn LoggerInterface>) -> String { + pub fn get_system_ca_root_bundle_path(_logger: Option<&dyn LoggerInterface>) -> String { todo!() } - pub fn validate_ca_file(ca_file: &str, logger: Option<&dyn LoggerInterface>) -> bool { + pub fn validate_ca_file(_ca_file: &str, _logger: Option<&dyn LoggerInterface>) -> bool { todo!() } diff --git a/crates/shirabe-external-packages/src/composer/metadata_minifier/metadata_minifier.rs b/crates/shirabe-external-packages/src/composer/metadata_minifier/metadata_minifier.rs index f886197..8861936 100644 --- a/crates/shirabe-external-packages/src/composer/metadata_minifier/metadata_minifier.rs +++ b/crates/shirabe-external-packages/src/composer/metadata_minifier/metadata_minifier.rs @@ -5,11 +5,11 @@ use shirabe_php_shim::PhpMixed; pub struct MetadataMinifier; impl MetadataMinifier { - pub fn expand(minified_data: IndexMap) -> IndexMap { + pub fn expand(_minified_data: IndexMap) -> IndexMap { todo!() } - pub fn minify(packages: IndexMap) -> IndexMap { + pub fn minify(_packages: IndexMap) -> IndexMap { todo!() } } diff --git a/crates/shirabe-external-packages/src/composer/pcre/preg.rs b/crates/shirabe-external-packages/src/composer/pcre/preg.rs index 3dd8b4f..9c39d42 100644 --- a/crates/shirabe-external-packages/src/composer/pcre/preg.rs +++ b/crates/shirabe-external-packages/src/composer/pcre/preg.rs @@ -2,518 +2,518 @@ pub struct Preg; impl Preg { - pub fn r#match(pattern: &str, subject: &str) -> anyhow::Result { + pub fn r#match(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn match4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn match_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { + pub fn match_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn match_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn match_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { + pub fn match_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn match_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn match_all(pattern: &str, subject: &str) -> anyhow::Result { + pub fn match_all(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match_all3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn match_all4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match_all5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn match_all_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { + pub fn match_all_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match_all_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn match_all_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match_all_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn match_all_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { + pub fn match_all_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match_all_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn match_all_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match_all_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn replace(pattern: &str, replacement: &str, subject: &str) -> anyhow::Result { + pub fn replace(_pattern: &str, _replacement: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn replace4( - pattern: &str, - replacement: &str, - subject: &str, - limit: i64, + _pattern: &str, + _replacement: &str, + _subject: &str, + _limit: i64, ) -> anyhow::Result { todo!() } pub fn replace5( - pattern: &str, - replacement: &str, - subject: &str, - limit: i64, - count: &mut usize, + _pattern: &str, + _replacement: &str, + _subject: &str, + _limit: i64, + _count: &mut usize, ) -> anyhow::Result { todo!() } pub fn replace_callback) -> String>( - pattern: &str, - replacement: F, - subject: &str, + _pattern: &str, + _replacement: F, + _subject: &str, ) -> anyhow::Result { todo!() } pub fn replace_callback4) -> String>( - pattern: &str, - replacement: F, - subject: &str, - limit: i64, + _pattern: &str, + _replacement: F, + _subject: &str, + _limit: i64, ) -> anyhow::Result { todo!() } pub fn replace_callback5) -> String>( - pattern: &str, - replacement: F, - subject: &str, - limit: i64, - count: &mut usize, + _pattern: &str, + _replacement: F, + _subject: &str, + _limit: i64, + _count: &mut usize, ) -> anyhow::Result { todo!() } pub fn replace_callback6) -> String>( - pattern: &str, - replacement: F, - subject: &str, - limit: i64, - count: Option<&mut usize>, - flags: i64, + _pattern: &str, + _replacement: F, + _subject: &str, + _limit: i64, + _count: Option<&mut usize>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn replace_callback_array( - pattern: &indexmap::IndexMap, - subject: &str, + _pattern: &indexmap::IndexMap, + _subject: &str, ) -> anyhow::Result { todo!() } pub fn replace_callback_array3( - pattern: &indexmap::IndexMap, - subject: &str, - limit: i64, + _pattern: &indexmap::IndexMap, + _subject: &str, + _limit: i64, ) -> anyhow::Result { todo!() } pub fn replace_callback_array4( - pattern: &indexmap::IndexMap, - subject: &str, - limit: i64, - count: &mut usize, + _pattern: &indexmap::IndexMap, + _subject: &str, + _limit: i64, + _count: &mut usize, ) -> anyhow::Result { todo!() } pub fn replace_callback_array5( - pattern: &indexmap::IndexMap, - subject: &str, - limit: i64, - count: Option<&mut usize>, - flags: i64, + _pattern: &indexmap::IndexMap, + _subject: &str, + _limit: i64, + _count: Option<&mut usize>, + _flags: i64, ) -> anyhow::Result { todo!() } - pub fn split(pattern: &str, subject: &str) -> anyhow::Result> { + pub fn split(_pattern: &str, _subject: &str) -> anyhow::Result> { todo!() } - pub fn split3(pattern: &str, subject: &str, limit: i64) -> anyhow::Result> { + pub fn split3(_pattern: &str, _subject: &str, _limit: i64) -> anyhow::Result> { todo!() } pub fn split4( - pattern: &str, - subject: &str, - limit: i64, - flags: i64, + _pattern: &str, + _subject: &str, + _limit: i64, + _flags: i64, ) -> anyhow::Result> { todo!() } pub fn split_with_offsets( - pattern: &str, - subject: &str, + _pattern: &str, + _subject: &str, ) -> anyhow::Result> { todo!() } pub fn split_with_offsets3( - pattern: &str, - subject: &str, - limit: i64, + _pattern: &str, + _subject: &str, + _limit: i64, ) -> anyhow::Result> { todo!() } pub fn split_with_offsets4( - pattern: &str, - subject: &str, - limit: i64, - flags: i64, + _pattern: &str, + _subject: &str, + _limit: i64, + _flags: i64, ) -> anyhow::Result> { todo!() } - pub fn grep(pattern: &str, array: &[&str]) -> anyhow::Result> { + pub fn grep(_pattern: &str, _array: &[&str]) -> anyhow::Result> { todo!() } - pub fn grep3(pattern: &str, array: &[&str], flags: i64) -> anyhow::Result> { + pub fn grep3(_pattern: &str, _array: &[&str], _flags: i64) -> anyhow::Result> { todo!() } - pub fn is_match(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn is_match4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn is_match_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn is_match_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn is_match_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn is_match_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn is_match_all(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match_all(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match_all3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn is_match_all4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_all5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn is_match_all_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match_all_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match_all_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn is_match_all_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_all_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn is_match_all_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match_all_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match_all_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn is_match_all_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_all_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } 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 { todo!() } - pub fn compact_constraint(constraint: &dyn std::any::Any) -> Box { + pub fn compact_constraint(_constraint: &dyn std::any::Any) -> Box { todo!() } - pub fn compact(constraint: &dyn std::any::Any) -> Box { + pub fn compact(_constraint: &dyn std::any::Any) -> Box { todo!() } - pub fn get(constraint: &dyn std::any::Any) -> anyhow::Result { + pub fn get(_constraint: &dyn std::any::Any) -> anyhow::Result { 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) -> anyhow::Result> { + pub fn sort(_versions: Vec) -> anyhow::Result> { todo!() } - pub fn rsort(versions: Vec) -> Vec { + pub fn rsort(_versions: Vec) -> Vec { todo!() } - pub fn satisfies(version: &str, constraint: &str) -> bool { + pub fn satisfies(_version: &str, _constraint: &str) -> bool { todo!() } } diff --git a/crates/shirabe-external-packages/src/composer/spdx_licenses/spdx_licenses.rs b/crates/shirabe-external-packages/src/composer/spdx_licenses/spdx_licenses.rs index 95640c9..684e73b 100644 --- a/crates/shirabe-external-packages/src/composer/spdx_licenses/spdx_licenses.rs +++ b/crates/shirabe-external-packages/src/composer/spdx_licenses/spdx_licenses.rs @@ -3,16 +3,22 @@ use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct SpdxLicenses; +impl Default for SpdxLicenses { + fn default() -> Self { + Self::new() + } +} + impl SpdxLicenses { pub fn new() -> Self { todo!() } - pub fn validate(&self, license: &str) -> bool { + pub fn validate(&self, _license: &str) -> bool { todo!() } - pub fn get_license_by_identifier(&self, identifier: &str) -> Option { + pub fn get_license_by_identifier(&self, _identifier: &str) -> Option { todo!() } diff --git a/crates/shirabe-external-packages/src/composer/util/composer_mirror.rs b/crates/shirabe-external-packages/src/composer/util/composer_mirror.rs index 21d0fdf..66e363c 100644 --- a/crates/shirabe-external-packages/src/composer/util/composer_mirror.rs +++ b/crates/shirabe-external-packages/src/composer/util/composer_mirror.rs @@ -3,21 +3,31 @@ pub struct ComposerMirror; impl ComposerMirror { pub fn process_url( - mirror: &str, - package_name: &str, - version: &str, - reference: Option<&str>, - url: &str, - custom_filename: Option<&str>, + _mirror: &str, + _package_name: &str, + _version: &str, + _reference: Option<&str>, + _url: &str, + _custom_filename: Option<&str>, ) -> String { todo!() } - pub fn process_git_url(mirror: &str, package_name: &str, url: &str, extension: &str) -> String { + pub fn process_git_url( + _mirror: &str, + _package_name: &str, + _url: &str, + _extension: &str, + ) -> String { todo!() } - pub fn process_hg_url(mirror: &str, package_name: &str, url: &str, extension: &str) -> String { + pub fn process_hg_url( + _mirror: &str, + _package_name: &str, + _url: &str, + _extension: &str, + ) -> String { todo!() } } -- cgit v1.3.1