diff options
Diffstat (limited to 'src/tasks.rs')
| -rw-r--r-- | src/tasks.rs | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/tasks.rs b/src/tasks.rs index 85e57c5..9475d60 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -16,9 +16,22 @@ pub struct CompletedTask<N> { pub output: Option<TaskOutput>, } -impl<N> From<(N, TaskOutput)> for CompletedTask<N> { - fn from((name, output): (N, TaskOutput)) -> Self { - CompletedTask { name, output: Some(output) } +impl<N> + From<( + N, + TaskOutput, + )> for CompletedTask<N> +{ + fn from( + (name, output): ( + N, + TaskOutput, + ), + ) -> Self { + CompletedTask { + name, + output: Some(output), + } } } |
