From 0bc6445ebf6a4b461819e33a26dfbfba34abb115 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Mon, 25 May 2020 19:21:00 -0400 Subject: [PATCH] fix wasm build issue --- .gitignore | 1 + src/stylesheet.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 021c5b1..c08fa70 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.css Cargo.lock coverage +pkg diff --git a/src/stylesheet.rs b/src/stylesheet.rs index be46226..f852910 100644 --- a/src/stylesheet.rs +++ b/src/stylesheet.rs @@ -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(""),