parsing interpolation no longer allocates buffer

This commit is contained in:
Connor Skees 2020-07-08 10:19:57 -04:00
parent 4b0b644264
commit 56a5abb05c

View File

@ -414,8 +414,7 @@ impl<'a> Parser<'a> {
}
pub fn parse_interpolation(&mut self) -> SassResult<Spanned<Value>> {
let toks = read_until_closing_curly_brace(self.toks)?;
let val = self.parse_value_from_vec(toks)?;
let val = self.parse_value()?;
match self.toks.next() {
Some(Token { kind: '}', .. }) => {}
Some(..) | None => return Err(("expected \"}\".", val.span).into()),