diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2018-12-16 19:10:36 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2018-12-16 19:10:36 +0100 |
| commit | 8e9a91d0b09313eee0f7fa44cc827dced0ea1806 (patch) | |
| tree | d8948c7dba85dff65b18cf57c661820b9d5220c5 /macros/src/check.rs | |
| parent | 4345c105963cee061acf26bec207fab2859fb164 (diff) | |
properly handle `#[cfg]` (conditional compilation) on tasks
Diffstat (limited to 'macros/src/check.rs')
| -rw-r--r-- | macros/src/check.rs | 3 |
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(), |
