summaryrefslogtreecommitdiff
path: root/src/client/executor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/executor.rs')
-rw-r--r--src/client/executor.rs24
1 files changed, 10 insertions, 14 deletions
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<Item = &'a str>) -> Result<Self, IntoTaskErr> {
- 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>> {
- self.output = Some(
- (self
- .task
- .exec)(&self.args),
- );
+ self.output = Some((self
+ .task
+ .exec)(&self.args));
self.output
.as_ref()
}