diff --git a/src/wasm/settings.rs b/src/wasm/settings.rs index a0b9fb8a..52883a3f 100644 --- a/src/wasm/settings.rs +++ b/src/wasm/settings.rs @@ -69,7 +69,8 @@ impl WikitextSettings { _ => return Err(JsValue::from_str("Unknown layout")), }; - let settings = RustWikitextSettings::from_mode(rust_mode, rust_layout); - Ok(WikitextSettings { inner: Arc::new(settings) }) + Ok(WikitextSettings { + inner: Arc::new(RustWikitextSettings::from_mode(rust_mode, rust_layout)), + }) } }