diff options
author | 2020-10-13 14:16:33 +0000 | |
---|---|---|
committer | 2020-10-15 17:09:27 +0000 | |
commit | 21253297e4a11a1d9f9c5069578cf9c69a3de31b (patch) | |
tree | 896d527bfd204f788eacc3dc791966fb88e287be /macros/src/check.rs | |
parent | 355cb82d0693fe108ac28ec8a0d77e8aab4e6e06 (diff) | |
download | rtic-21253297e4a11a1d9f9c5069578cf9c69a3de31b.tar.gz rtic-21253297e4a11a1d9f9c5069578cf9c69a3de31b.tar.zst rtic-21253297e4a11a1d9f9c5069578cf9c69a3de31b.zip |
Implement all clippy suggestions
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 5a1d3aff..cfc18d3d 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<Extra<'a>> { let priorities = app .software_tasks .iter() - .filter_map(|(name, task)| { + .map(|(name, task)| { first = Some(name); - Some(task.args.priority) + task.args.priority }) .collect::<HashSet<_>>(); @@ -97,7 +97,7 @@ pub fn app<'a>(app: &'a App, _analysis: &Analysis) -> parse::Result<Extra<'a>> { }, "peripherals" => match v { - CustomArg::Bool(x) => peripherals = if *x { true } else { false }, + CustomArg::Bool(x) => peripherals = *x, _ => { return Err(parse::Error::new( k.span(), |