diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-15 17:13:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-15 17:13:37 +0000 |
| commit | 8b53b9d10cd5fee85d98cd337b478cf3d3305b12 (patch) | |
| tree | 896d527bfd204f788eacc3dc791966fb88e287be /macros/src/check.rs | |
| parent | 355cb82d0693fe108ac28ec8a0d77e8aab4e6e06 (diff) | |
| parent | 21253297e4a11a1d9f9c5069578cf9c69a3de31b (diff) | |
Merge #393
393: Implement all clippy suggestions r=korken89 a=AfoHT
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
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 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<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(), |
