diff --git a/src/lib.rs b/src/lib.rs index 75ff116..f88b408 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -185,10 +185,9 @@ pub(crate) fn eat_expr>( content: Option<&[Spanned]>, ) -> SassResult>> { let mut values = Vec::with_capacity(5); - let mut span = if let Some(tok) = toks.peek() { - tok.pos() - } else { - return Ok(None); + let mut span = match toks.peek() { + Some(tok) => tok.pos(), + None => return Ok(None), }; while let Some(tok) = toks.peek() { span = span.merge(tok.pos());