resolve clippy lints

This commit is contained in:
ConnorSkees 2020-06-25 01:18:13 -04:00
parent e12d3a581d
commit 17a0323da5
2 changed files with 2 additions and 5 deletions

View File

@ -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) => {

View File

@ -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)?
};