From 63695403a88993b0cb90eb6230cf66243ad0c3c6 Mon Sep 17 00:00:00 2001 From: pln <Per Lindgren> Date: Fri, 11 Aug 2017 10:52:05 +0200 Subject: [PATCH] cro only --- src/check.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/check.rs b/src/check.rs index 0b6dd69..6e6f9d5 100644 --- a/src/check.rs +++ b/src/check.rs @@ -175,7 +175,10 @@ fn tasks(tasks: Option<::Tasks>) -> Result<Tasks> { enabled: task.enabled, path: task.path, priority: task.priority, - resources: ::check::resources("resources", task.resources)?, + resources: ::check::resources( + "resources", + task.resources, + )?, }, )) })().chain_err(|| format!("checking task `{}`", name_)) @@ -196,7 +199,7 @@ pub struct Cro { } /// Checks the syntax of the parsed `app!` macro -pub fn crc(cro: ::Cro) -> Result<Cro> { +pub fn cro(cro: ::Cro) -> Result<Cro> { Ok(Cro { ips: ::check::ips(cro.ips).chain_err(|| "checking `ips`")?, ops: ::check::ops(cro.ops).chain_err(|| "checking `ops`")?, -- GitLab