resolve clippy lints
This commit is contained in:
parent
e12d3a581d
commit
17a0323da5
@ -131,7 +131,7 @@ impl Css {
|
|||||||
vec![Toplevel::Media { query, body }]
|
vec![Toplevel::Media { query, body }]
|
||||||
}
|
}
|
||||||
Stmt::Supports(s) => {
|
Stmt::Supports(s) => {
|
||||||
let SupportsRule { params, body, .. } = *s;
|
let SupportsRule { params, body } = *s;
|
||||||
vec![Toplevel::Supports { params, body }]
|
vec![Toplevel::Supports { params, body }]
|
||||||
}
|
}
|
||||||
Stmt::UnknownAtRule(u) => {
|
Stmt::UnknownAtRule(u) => {
|
||||||
|
@ -238,10 +238,7 @@ impl<'a> Parser<'a> {
|
|||||||
_ => match self.is_selector_or_style()? {
|
_ => match self.is_selector_or_style()? {
|
||||||
SelectorOrStyle::Style(property, value) => {
|
SelectorOrStyle::Style(property, value) => {
|
||||||
let styles = if let Some(value) = value {
|
let styles = if let Some(value) = value {
|
||||||
vec![Style {
|
vec![Style { property, value }]
|
||||||
property,
|
|
||||||
value: value,
|
|
||||||
}]
|
|
||||||
} else {
|
} else {
|
||||||
self.parse_style_group(property)?
|
self.parse_style_group(property)?
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user