ensure generated hash is safe

This commit is contained in:
Yiffy Dev 2024-10-30 16:41:45 +05:00 • committed by spushk
commit 890b4e05d2
Signed by: spushk
GPG key ID: 7797B761E105E8AA

View file

@ -85,8 +85,7 @@ pub fn styly_macro_impl(input: TokenStream) -> TokenStream {
let interp = s
.as_sass_interpolated()
.and_then(|i| i.elements.first())
.and_then(|e| e.as_static())
.and_then(|s| Some(s.raw.to_string()));
.and_then(|e| e.as_static().map(|s| s.raw.to_string()));
interp
})