resolve clippy lints

This commit is contained in:
Connor Skees 2020-07-07 19:50:17 -04:00
parent b729d7b257
commit 6a83db7404
2 changed files with 5 additions and 5 deletions

View File

@ -569,7 +569,10 @@ impl<'a> Parser<'a> {
{
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();
match self.toks.next() {
Some(Token { kind: '{', .. }) => {}
@ -578,9 +581,6 @@ impl<'a> Parser<'a> {
}
}
v
} else {
self.throw_away_until_open_curly_brace()?;
false
};
if cond {
found_true = true;

View File

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