From 7fdf16eab948ea04c1e56fdb5a704ed88780f5c6 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 8 Apr 2018 18:23:27 +0200 Subject: update parser closes #69 this doesn't change functionality per se but improves diagnostics in some cases. Some hard errors have becomes warnings, for example: when `resources` is empty, or when `idle.path` is set to the default `idle` path. --- macros/src/analyze.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macros/src/analyze.rs') diff --git a/macros/src/analyze.rs b/macros/src/analyze.rs index 65d98e6..666dc30 100644 --- a/macros/src/analyze.rs +++ b/macros/src/analyze.rs @@ -40,7 +40,7 @@ pub fn app(app: &App) -> Ownerships { } for task in app.tasks.values() { - for resource in &task.resources { + for resource in task.resources.iter() { if let Some(ownership) = ownerships.get_mut(resource) { match *ownership { Ownership::Owned { priority } => { -- cgit v1.2.3