resolve clippy lints
This commit is contained in:
parent
b729d7b257
commit
6a83db7404
@ -569,7 +569,10 @@ impl<'a> Parser<'a> {
|
|||||||
{
|
{
|
||||||
self.toks.next();
|
self.toks.next();
|
||||||
self.toks.next();
|
self.toks.next();
|
||||||
let cond = if !found_true {
|
let cond = if found_true {
|
||||||
|
self.throw_away_until_open_curly_brace()?;
|
||||||
|
false
|
||||||
|
} else {
|
||||||
let v = self.parse_value()?.node.is_true();
|
let v = self.parse_value()?.node.is_true();
|
||||||
match self.toks.next() {
|
match self.toks.next() {
|
||||||
Some(Token { kind: '{', .. }) => {}
|
Some(Token { kind: '{', .. }) => {}
|
||||||
@ -578,9 +581,6 @@ impl<'a> Parser<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
v
|
v
|
||||||
} else {
|
|
||||||
self.throw_away_until_open_curly_brace()?;
|
|
||||||
false
|
|
||||||
};
|
};
|
||||||
if cond {
|
if cond {
|
||||||
found_true = true;
|
found_true = true;
|
||||||
|
@ -34,7 +34,7 @@ impl<'a> Parser<'a> {
|
|||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Err((format!("Expected {}.", q), self.span_before).into());
|
Err((format!("Expected {}.", q), self.span_before).into())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn throw_away_until_open_curly_brace(&mut self) -> SassResult<()> {
|
pub(super) fn throw_away_until_open_curly_brace(&mut self) -> SassResult<()> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user