summaryrefslogtreecommitdiff
path: root/src/client/executor.rs
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-09-16 20:27:22 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-09-17 21:28:52 +0800
commit73b908cb44cf52a768647c0f5cd450ab48cf831f (patch)
tree5cec5d442c065a0464626e45e7c61ac97e04d63e /src/client/executor.rs
parent4517907896246d815d1ab2b4c67b883cd567eae0 (diff)
chore: rustfmt config change
Diffstat (limited to 'src/client/executor.rs')
-rw-r--r--src/client/executor.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/client/executor.rs b/src/client/executor.rs
index ad419f0..32a0fdc 100644
--- a/src/client/executor.rs
+++ b/src/client/executor.rs
@@ -7,16 +7,9 @@ pub struct Executor {
}
impl Executor {
- pub fn new(
- task: impl IntoTask,
- args: impl IntoIterator<Item = String>,
- ) -> Result<Self, IntoTaskErr> {
+ pub fn new(task: impl IntoTask, args: impl IntoIterator<Item = String>) -> Result<Self, IntoTaskErr> {
let task = task.into_task()?;
- Ok(Self {
- task: task,
- args: args.into_iter().collect(),
- output: None,
- })
+ Ok(Self { task: task, args: args.into_iter().collect(), output: None })
}
pub fn run(&mut self) -> Option<&Result<String, String>> {