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