From 21253297e4a11a1d9f9c5069578cf9c69a3de31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Tue, 13 Oct 2020 14:16:33 +0000 Subject: Implement all clippy suggestions --- macros/src/check.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macros/src/check.rs') diff --git a/macros/src/check.rs b/macros/src/check.rs index 5a1d3af..cfc18d3 100644 --- a/macros/src/check.rs +++ b/macros/src/check.rs @@ -44,9 +44,9 @@ pub fn app<'a>(app: &'a App, _analysis: &Analysis) -> parse::Result> { let priorities = app .software_tasks .iter() - .filter_map(|(name, task)| { + .map(|(name, task)| { first = Some(name); - Some(task.args.priority) + task.args.priority }) .collect::>(); @@ -97,7 +97,7 @@ pub fn app<'a>(app: &'a App, _analysis: &Analysis) -> parse::Result> { }, "peripherals" => match v { - CustomArg::Bool(x) => peripherals = if *x { true } else { false }, + CustomArg::Bool(x) => peripherals = *x, _ => { return Err(parse::Error::new( k.span(), -- cgit v1.2.3