aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/component/process
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-17 15:08:03 +0900
committernsfisis <nsfisis@gmail.com>2026-05-17 15:08:03 +0900
commit748e741f740ac46ec40e42679aba3b07927709c0 (patch)
tree31f01831b11613631ba68da047abf1a9aa43f1b0 /crates/shirabe-external-packages/src/symfony/component/process
parent79bcd3a9ce71954ce7b257e5f3ca1c147c0d974a (diff)
downloadphp-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/symfony/component/process')
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/executable_finder.rs10
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/php_executable_finder.rs8
-rw-r--r--crates/shirabe-external-packages/src/symfony/component/process/process.rs39
3 files changed, 34 insertions, 23 deletions
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<String> {
+ pub fn find(&self, _name: &str, _default: Option<&str>, _dirs: &[String]) -> Option<String> {
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<String> {
+ pub fn find(&self, _include_args: bool) -> Option<String> {
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<String>,
- cwd: Option<String>,
- env: Option<IndexMap<String, String>>,
- input: Option<String>,
- timeout: Option<f64>,
+ _command: Vec<String>,
+ _cwd: Option<String>,
+ _env: Option<IndexMap<String, String>>,
+ _input: Option<String>,
+ _timeout: Option<f64>,
) -> Self {
todo!()
}
pub fn from_shell_commandline(
- command: &str,
- cwd: Option<&str>,
- env: Option<IndexMap<String, String>>,
- input: Option<String>,
- timeout: Option<f64>,
+ _command: &str,
+ _cwd: Option<&str>,
+ _env: Option<IndexMap<String, String>>,
+ _input: Option<String>,
+ _timeout: Option<f64>,
) -> Self {
todo!()
}
- pub fn set_timeout(&mut self, timeout: Option<f64>) -> &mut Self {
+ pub fn set_timeout(&mut self, _timeout: Option<f64>) -> &mut Self {
todo!()
}
- pub fn set_env(&mut self, env: IndexMap<String, String>) -> &mut Self {
+ pub fn set_env(&mut self, _env: IndexMap<String, String>) -> &mut Self {
todo!()
}
- pub fn set_input(&mut self, input: Option<String>) -> &mut Self {
+ pub fn set_input(&mut self, _input: Option<String>) -> &mut Self {
todo!()
}
- pub fn run(&mut self, callback: Option<Box<dyn FnMut(&str, &str)>>) -> i64 {
+ pub fn run(&mut self, _callback: Option<Box<dyn FnMut(&str, &str)>>) -> i64 {
todo!()
}
pub fn must_run(
&mut self,
- callback: Option<Box<dyn FnMut(&str, &str)>>,
+ _callback: Option<Box<dyn FnMut(&str, &str)>>,
) -> anyhow::Result<&mut Self> {
todo!()
}
- pub fn start(&mut self, callback: Option<Box<dyn FnMut(&str, &str)>>) {
+ pub fn start(&mut self, _callback: Option<Box<dyn FnMut(&str, &str)>>) {
todo!()
}
- pub fn wait(&mut self, callback: Option<Box<dyn FnMut(&str, &str)>>) -> i64 {
+ pub fn wait(&mut self, _callback: Option<Box<dyn FnMut(&str, &str)>>) -> i64 {
todo!()
}
- pub fn stop(&mut self, timeout: f64, signal: Option<i64>) -> Option<i64> {
+ pub fn stop(&mut self, _timeout: f64, _signal: Option<i64>) -> Option<i64> {
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!()
}
}