fix wasm build issue

This commit is contained in:
ConnorSkees 2020-05-25 19:21:00 -04:00
parent b149cb3484
commit 0bc6445ebf
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
*.css
Cargo.lock
coverage
pkg

View File

@ -40,7 +40,7 @@ impl StyleSheet {
let file = map.add_file("stdin".into(), input);
Ok(Css::from_stylesheet(StyleSheet(
StyleSheetParser {
lexer: Lexer::new(&file).peekmore(),
lexer: &mut Lexer::new(&file).peekmore(),
nesting: 0,
map: &mut map,
path: Path::new(""),