From dfddb8995ad68f9591a1e3e7c380d944a4f3b9d2 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 19 Sep 2025 17:45:33 +0800 Subject: task: use typed enum name --- src/client/executor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/executor.rs') 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>, } impl<'a, 't> Executor<'a, 't> { - pub fn new(task: &'t Task<'t>, args: impl IntoIterator) -> Result { + pub fn new(task: &'t Task, args: impl IntoIterator) -> Result { Ok(Self { task: task, args: args.into_iter().collect(), output: None }) } -- cgit v1.2.3