aboutsummaryrefslogtreecommitdiff
path: root/macros/src/check.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2018-12-16 19:10:36 +0100
committerJorge Aparicio <jorge@japaric.io>2018-12-16 19:10:36 +0100
commit8e9a91d0b09313eee0f7fa44cc827dced0ea1806 (patch)
treed8948c7dba85dff65b18cf57c661820b9d5220c5 /macros/src/check.rs
parent4345c105963cee061acf26bec207fab2859fb164 (diff)
properly handle `#[cfg]` (conditional compilation) on tasks
Diffstat (limited to 'macros/src/check.rs')
-rw-r--r--macros/src/check.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/macros/src/check.rs b/macros/src/check.rs
index f283220..8518459 100644
--- a/macros/src/check.rs
+++ b/macros/src/check.rs
@@ -73,7 +73,8 @@ pub fn app(app: &App) -> parse::Result<()> {
app.tasks
.values()
.flat_map(|t| t.args.schedule.iter().chain(&t.args.spawn)),
- ) {
+ )
+ {
if !app.tasks.contains_key(task) {
return Err(parse::Error::new(
task.span(),