From 56a5abb05c0a873df8f4462273188413b40c1e69 Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Wed, 8 Jul 2020 10:19:57 -0400 Subject: [PATCH] parsing interpolation no longer allocates buffer --- src/parse/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parse/mod.rs b/src/parse/mod.rs index bc7858e..93fba3a 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -414,8 +414,7 @@ impl<'a> Parser<'a> { } pub fn parse_interpolation(&mut self) -> SassResult> { - 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()),