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.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/executor.rs b/src/client/executor.rs
index 32a0fdc..379c832 100644
--- a/src/client/executor.rs
+++ b/src/client/executor.rs
@@ -1,4 +1,4 @@
-use remote_control_rs::tasks::{IntoTask, IntoTaskErr, Task};
+use remote_control_rs::tasks::{IntoTaskErr, Task};
pub struct Executor {
task: &'static Task,
@@ -7,8 +7,7 @@ pub struct Executor {
}
impl Executor {
- pub fn new(task: impl IntoTask, args: impl IntoIterator<Item = String>) -> Result<Self, IntoTaskErr> {
- let task = task.into_task()?;
+ pub fn new(task: &'static Task, args: impl IntoIterator<Item = String>) -> Result<Self, IntoTaskErr> {
Ok(Self { task: task, args: args.into_iter().collect(), output: None })
}