From 12068a53657ddad6a4f1a277dd03e095400f690d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 24 Sep 2025 00:58:09 +0800 Subject: format --- src/client/executor.rs | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'src/client/executor.rs') diff --git a/src/client/executor.rs b/src/client/executor.rs index 8fef869..1e6968c 100644 --- a/src/client/executor.rs +++ b/src/client/executor.rs @@ -8,23 +8,19 @@ pub struct Executor<'a, 't> { impl<'a, 't> Executor<'a, 't> { pub fn new(task: &'t Task, args: impl IntoIterator) -> Result { - 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> { - self.output = Some( - (self - .task - .exec)(&self.args), - ); + self.output = Some((self + .task + .exec)(&self.args)); self.output .as_ref() } -- cgit v1.2.3