summaryrefslogtreecommitdiff
path: root/src/tasks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks.rs')
-rw-r--r--src/tasks.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tasks.rs b/src/tasks.rs
index 3e76ce4..069f9c2 100644
--- a/src/tasks.rs
+++ b/src/tasks.rs
@@ -4,9 +4,9 @@ pub type TaskOutput = Result<String, String>;
pub mod client;
pub mod server;
-pub struct Task<N> {
+pub struct Task<N, T = ()> {
pub name: N,
- pub exec: fn(&[&str]) -> TaskOutput,
+ pub exec: fn(&[&str], T) -> TaskOutput,
}
#[derive(Deserialize)]