From fb4542818becf613f86dc362bbeb2d3da2bb2975 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 24 Jul 2017 22:46:29 -0500 Subject: task! is not needed if tasks.$T.path is specified --- macros/src/check.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'macros/src/check.rs') diff --git a/macros/src/check.rs b/macros/src/check.rs index 1dac363..cedf933 100644 --- a/macros/src/check.rs +++ b/macros/src/check.rs @@ -18,6 +18,7 @@ pub type Tasks = HashMap; pub struct Task { pub enabled: Option, + pub path: Option, pub priority: u8, pub resources: Idents, } @@ -71,6 +72,7 @@ fn task(task: syntax::check::Task) -> Result { if let Some(priority) = task.priority { Ok(Task { enabled: task.enabled, + path: task.path, priority, resources: task.resources, }) -- cgit v1.2.3