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 --- .../symfony/component/process/executable_finder.rs | 10 ++++-- .../component/process/php_executable_finder.rs | 8 ++++- .../src/symfony/component/process/process.rs | 39 +++++++++++----------- 3 files changed, 34 insertions(+), 23 deletions(-) (limited to 'crates/shirabe-external-packages/src/symfony/component/process') diff --git a/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs b/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs index 9aa5a8b..ae8e5dc 100644 --- a/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs +++ b/crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs @@ -1,16 +1,22 @@ #[derive(Debug)] pub struct ExecutableFinder; +impl Default for ExecutableFinder { + fn default() -> Self { + Self::new() + } +} + impl ExecutableFinder { pub fn new() -> Self { todo!() } - pub fn add_suffix(&mut self, suffix: &str) { + pub fn add_suffix(&mut self, _suffix: &str) { todo!() } - pub fn find(&self, name: &str, default: Option<&str>, dirs: &[String]) -> Option { + pub fn find(&self, _name: &str, _default: Option<&str>, _dirs: &[String]) -> Option { todo!() } } diff --git a/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs b/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs index be99e8c..0346d10 100644 --- a/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs +++ b/crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs @@ -1,12 +1,18 @@ #[derive(Debug)] pub struct PhpExecutableFinder; +impl Default for PhpExecutableFinder { + fn default() -> Self { + Self::new() + } +} + impl PhpExecutableFinder { pub fn new() -> Self { todo!() } - pub fn find(&self, include_args: bool) -> Option { + pub fn find(&self, _include_args: bool) -> Option { todo!() } diff --git a/crates/shirabe-external-packages/src/symfony/component/process/process.rs b/crates/shirabe-external-packages/src/symfony/component/process/process.rs index c955790..d0cc249 100644 --- a/crates/shirabe-external-packages/src/symfony/component/process/process.rs +++ b/crates/shirabe-external-packages/src/symfony/component/process/process.rs @@ -1,5 +1,4 @@ use indexmap::IndexMap; -use shirabe_php_shim::PhpMixed; #[derive(Debug)] pub struct Process; @@ -9,57 +8,57 @@ impl Process { pub const OUT: &'static str = "out"; pub fn new( - command: Vec, - cwd: Option, - env: Option>, - input: Option, - timeout: Option, + _command: Vec, + _cwd: Option, + _env: Option>, + _input: Option, + _timeout: Option, ) -> Self { todo!() } pub fn from_shell_commandline( - command: &str, - cwd: Option<&str>, - env: Option>, - input: Option, - timeout: Option, + _command: &str, + _cwd: Option<&str>, + _env: Option>, + _input: Option, + _timeout: Option, ) -> Self { todo!() } - pub fn set_timeout(&mut self, timeout: Option) -> &mut Self { + pub fn set_timeout(&mut self, _timeout: Option) -> &mut Self { todo!() } - pub fn set_env(&mut self, env: IndexMap) -> &mut Self { + pub fn set_env(&mut self, _env: IndexMap) -> &mut Self { todo!() } - pub fn set_input(&mut self, input: Option) -> &mut Self { + pub fn set_input(&mut self, _input: Option) -> &mut Self { todo!() } - pub fn run(&mut self, callback: Option>) -> i64 { + pub fn run(&mut self, _callback: Option>) -> i64 { todo!() } pub fn must_run( &mut self, - callback: Option>, + _callback: Option>, ) -> anyhow::Result<&mut Self> { todo!() } - pub fn start(&mut self, callback: Option>) { + pub fn start(&mut self, _callback: Option>) { todo!() } - pub fn wait(&mut self, callback: Option>) -> i64 { + pub fn wait(&mut self, _callback: Option>) -> i64 { todo!() } - pub fn stop(&mut self, timeout: f64, signal: Option) -> Option { + pub fn stop(&mut self, _timeout: f64, _signal: Option) -> Option { todo!() } @@ -107,7 +106,7 @@ impl Process { todo!() } - pub fn set_working_directory(&mut self, cwd: &str) -> &mut Self { + pub fn set_working_directory(&mut self, _cwd: &str) -> &mut Self { todo!() } } -- cgit v1.3.1