Run cargo fmt over all code

This commit is contained in:
Alex Crichton
2019-08-12 11:28:37 -07:00
parent 3697fb7205
commit 1d0c333a2b
9 changed files with 21 additions and 25 deletions

View File

@ -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();
}

View File

@ -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 {