summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/executor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/executor.rs b/src/client/executor.rs
index b75040a..26ac0ba 100644
--- a/src/client/executor.rs
+++ b/src/client/executor.rs
@@ -1,13 +1,13 @@
use remote_control_rs::tasks::{IntoTaskErr, Task};
pub struct Executor<'a, 't> {
- task: &'a Task<'t>,
+ task: &'t Task,
args: Box<[&'a str]>,
output: Option<Result<String, String>>,
}
impl<'a, 't> Executor<'a, 't> {
- pub fn new(task: &'t Task<'t>, args: impl IntoIterator<Item = &'a str>) -> Result<Self, IntoTaskErr> {
+ 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 })
}