mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-28 20:21:35 +00:00
Run cargo fmt
over all code
This commit is contained in:
@ -106,7 +106,7 @@ fn setup_clicker(document: &Document) {
|
||||
.dyn_ref::<HtmlElement>()
|
||||
.expect("#green-square be an `HtmlElement`")
|
||||
.set_onclick(Some(a.as_ref().unchecked_ref()));
|
||||
|
||||
|
||||
// See comments in `setup_clock` above for why we use `a.forget()`.
|
||||
a.forget();
|
||||
}
|
||||
|
@ -90,7 +90,8 @@ impl Scene {
|
||||
});
|
||||
drop(tx.send(rgb_data));
|
||||
})?;
|
||||
let done = rx.map(move |_data| image_data(base, len, width, height).into())
|
||||
let done = rx
|
||||
.map(move |_data| image_data(base, len, width, height).into())
|
||||
.map_err(|_| JsValue::undefined());
|
||||
|
||||
Ok(RenderingScene {
|
||||
|
Reference in New Issue
Block a user