diff options
Diffstat (limited to 'macros/src/check.rs')
-rw-r--r-- | macros/src/check.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/check.rs b/macros/src/check.rs index e4a716bc..42dd3c9e 100644 --- a/macros/src/check.rs +++ b/macros/src/check.rs @@ -49,7 +49,7 @@ pub enum Kind { pub struct Task { pub kind: Kind, - pub path: Option<Path>, + pub path: Path, pub priority: u8, pub resources: Idents, } @@ -122,7 +122,7 @@ fn task(name: &str, task: syntax::check::Task) -> Result<Task> { Ok(Task { kind, - path: task.path, + path: task.path.ok_or("`path` field is missing")?, priority: task.priority.unwrap_or(1), resources: task.resources, }) |