diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-09-14 12:51:24 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-09-14 12:51:24 +0800 |
| commit | 2e23d40733f8766bdb318a3ae39ece62a9f3bdfc (patch) | |
| tree | 39f9df70b63535d8edd17101ab79870607a091d0 /src/client/executor.rs | |
| parent | 29c1c417ded2f1e06dbe6b6c67288b1bcbe27d60 (diff) | |
fix(connector): proper seperation of task args
Diffstat (limited to 'src/client/executor.rs')
| -rw-r--r-- | src/client/executor.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/executor.rs b/src/client/executor.rs index 5fbba0b..6a017f8 100644 --- a/src/client/executor.rs +++ b/src/client/executor.rs @@ -9,11 +9,14 @@ pub(crate) struct Executor<'a> { } impl<'a> Executor<'a> { - pub(crate) fn new(task: impl IntoTask, args: String) -> Result<Self, IntoTaskErr> { + pub(crate) fn new( + task: impl IntoTask, + args: impl IntoIterator<Item = String>, + ) -> Result<Self, IntoTaskErr> { let task = task.into_task()?; Ok(Self { task: task, - args: Box::new([args]), + args: args.into_iter().collect(), output: None, }) } |
