diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2018-12-16 19:13:22 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2018-12-16 19:14:58 +0100 |
| commit | 56d09a12dd645166af7d6def6b95bf71ae7962bd (patch) | |
| tree | 44529dc248cc69772e51daa761d49c5d9ccbdc56 /macros/src/check.rs | |
| parent | 8e9a91d0b09313eee0f7fa44cc827dced0ea1806 (diff) | |
move macros crate to the 2018 edition
Diffstat (limited to 'macros/src/check.rs')
| -rw-r--r-- | macros/src/check.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/src/check.rs b/macros/src/check.rs index 8518459..ae2262a 100644 --- a/macros/src/check.rs +++ b/macros/src/check.rs @@ -3,14 +3,14 @@ use std::{collections::HashSet, iter}; use proc_macro2::Span; use syn::parse; -use syntax::App; +use crate::syntax::App; pub fn app(app: &App) -> parse::Result<()> { // Check that all referenced resources have been declared for res in app .idle .as_ref() - .map(|idle| -> Box<Iterator<Item = _>> { Box::new(idle.args.resources.iter()) }) + .map(|idle| -> Box<dyn Iterator<Item = _>> { Box::new(idle.args.resources.iter()) }) .unwrap_or_else(|| Box::new(iter::empty())) .chain(&app.init.args.resources) .chain(app.exceptions.values().flat_map(|e| &e.args.resources)) @@ -53,7 +53,7 @@ pub fn app(app: &App) -> parse::Result<()> { for task in app .idle .as_ref() - .map(|idle| -> Box<Iterator<Item = _>> { + .map(|idle| -> Box<dyn Iterator<Item = _>> { Box::new(idle.args.schedule.iter().chain(&idle.args.spawn)) }) .unwrap_or_else(|| Box::new(iter::empty())) |
