From 98fcc76a657c8d4acf9fc5c6c3246820c86d2271 Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Fri, 24 Jul 2020 23:58:26 -0400 Subject: [PATCH] resolve wasm build issues --- src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 72d3bbb..8d877f8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -348,7 +348,7 @@ pub fn from_string(p: String, options: &Options) -> Result { #[cfg(feature = "wasm")] #[wasm_bindgen] -pub fn from_string(p: String, options: &'_ Options<'_>) -> std::result::Result { +pub fn from_string(p: String) -> std::result::Result { let mut map = CodeMap::new(); let file = map.add_file("stdin".into(), p); let empty_span = file.span.subspan(0, 0); @@ -370,13 +370,13 @@ pub fn from_string(p: String, options: &'_ Options<'_>) -> std::result::Result