From 17a0323da5ba1106d5b3a86c98d289c11ed1879a Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Thu, 25 Jun 2020 01:18:13 -0400 Subject: [PATCH] resolve clippy lints --- src/output.rs | 2 +- src/parse/mod.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/output.rs b/src/output.rs index 9d17bd2..2ef85ac 100644 --- a/src/output.rs +++ b/src/output.rs @@ -131,7 +131,7 @@ impl Css { vec![Toplevel::Media { query, body }] } Stmt::Supports(s) => { - let SupportsRule { params, body, .. } = *s; + let SupportsRule { params, body } = *s; vec![Toplevel::Supports { params, body }] } Stmt::UnknownAtRule(u) => { diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 273da76..781bc28 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -238,10 +238,7 @@ impl<'a> Parser<'a> { _ => match self.is_selector_or_style()? { SelectorOrStyle::Style(property, value) => { let styles = if let Some(value) = value { - vec![Style { - property, - value: value, - }] + vec![Style { property, value }] } else { self.parse_style_group(property)? };