summaryrefslogtreecommitdiff
path: root/src/tasks.rs
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-09-21 15:03:21 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-09-21 15:03:21 +0800
commitf155278db783770b4fc44931e9ac0cb14131f981 (patch)
tree4f6acf6e9b0944713ded17398168bcdee91859dd /src/tasks.rs
parent3fa4e33421e3fa94ca63ceb99856f97f9aac741a (diff)
finish ctx
Diffstat (limited to 'src/tasks.rs')
-rw-r--r--src/tasks.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tasks.rs b/src/tasks.rs
index 069f9c2..e08c876 100644
--- a/src/tasks.rs
+++ b/src/tasks.rs
@@ -4,9 +4,10 @@ pub type TaskOutput = Result<String, String>;
pub mod client;
pub mod server;
+#[derive(Clone, Copy)]
pub struct Task<N, T = ()> {
pub name: N,
- pub exec: fn(&[&str], T) -> TaskOutput,
+ pub exec: fn(&[&str], &T) -> TaskOutput,
}
#[derive(Deserialize)]