diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-09-14 17:58:45 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-09-14 17:58:45 +0800 |
| commit | 35466de9f0ccabf88e1dfaa97fe39e5e74614f52 (patch) | |
| tree | b5a60cba2ebf891d45a22698e3602db244ec206f /src/client/executor.rs | |
| parent | 2e23d40733f8766bdb318a3ae39ece62a9f3bdfc (diff) | |
perf: static lifetime for task
perf: non borrowed array for signal handling
Diffstat (limited to 'src/client/executor.rs')
| -rw-r--r-- | src/client/executor.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/executor.rs b/src/client/executor.rs index 6a017f8..7f11941 100644 --- a/src/client/executor.rs +++ b/src/client/executor.rs @@ -2,13 +2,13 @@ use crate::executor::tasks::{IntoTask, IntoTaskErr, Task}; pub(crate) mod tasks; -pub(crate) struct Executor<'a> { - task: &'a Task, +pub(crate) struct Executor { + task: &'static Task, args: Box<[String]>, output: Option<Result<String, String>>, } -impl<'a> Executor<'a> { +impl Executor { pub(crate) fn new( task: impl IntoTask, args: impl IntoIterator<Item = String>, |
