summaryrefslogtreecommitdiff
path: root/src/executor.rs
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-09-24 00:58:03 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-09-24 00:58:03 +0800
commit6721953fbed98e00d85032a11980fdf75d2ce6da (patch)
tree87cd30ae47263961756a862bf526c89a7c425d7a /src/executor.rs
parentc7de2da6f9a966096d15d00cfc2c404fd086ae24 (diff)
formattcpserver
Diffstat (limited to 'src/executor.rs')
-rw-r--r--src/executor.rs18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/executor.rs b/src/executor.rs
index a2a7856..21f68da 100644
--- a/src/executor.rs
+++ b/src/executor.rs
@@ -22,17 +22,13 @@ impl<'a, 't, N: Copy + PartialEq, T> Executor<'a, 't, N, T> {
pub fn run(&mut self) -> &TaskOutput {
let output = (self
.task
- .exec)(
- &self.args, &self.ctx,
- );
- self.complete_task = Some(
- CompletedTask {
- name: self
- .task
- .name,
- output: Some(output),
- },
- );
+ .exec)(&self.args, &self.ctx);
+ self.complete_task = Some(CompletedTask {
+ name: self
+ .task
+ .name,
+ output: Some(output),
+ });
self.complete_task
.as_ref()
.unwrap()