resolve clippy lints
This commit is contained in:
parent
e12d3a581d
commit
17a0323da5
@ -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) => {
|
||||
|
@ -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)?
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user