Cargo fmt

This commit is contained in:
Raph Levien 2023-04-29 08:19:28 -07:00
parent 9c7e084239
commit e7c7f10524

View file

@ -516,7 +516,10 @@ pub fn main() -> Result<()> {
web_sys::window()
.and_then(|win| win.document())
.and_then(|doc| doc.body())
.and_then(|body| body.append_child(&web_sys::Element::from(canvas.clone())).ok())
.and_then(|body| {
body.append_child(&web_sys::Element::from(canvas.clone()))
.ok()
})
.expect("couldn't append canvas to document body");
_ = web_sys::HtmlElement::from(canvas).focus();
wasm_bindgen_futures::spawn_local(async move {