Skip to content

Commit

Permalink
Format change for wasm.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Jul 16, 2024
1 parent 218c07f commit d7257b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/wasm/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ impl WikitextSettings {
_ => return Err(JsValue::from_str("Unknown layout")),
};

Ok(WikitextSettings {
inner: Arc::new(RustWikitextSettings::from_mode(rust_mode, rust_layout)),
})
let settings = RustWikitextSettings::from_mode(rust_mode, rust_layout);
Ok(WikitextSettings { inner: Arc::new(settings) })
}
}

0 comments on commit d7257b6

Please sign in to comment.