Skip to content

Commit 1dc6d7a

Browse files
committed
style: applied rustfmt
1 parent 1280e96 commit 1dc6d7a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/vanilla/src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ use wasm_bindgen::prelude::*;
55
use web_sys::window;
66

77
fn start_app() {
8-
let document = window().and_then(|win| win.document()).expect("Could not access document");
8+
let document = window()
9+
.and_then(|win| win.document())
10+
.expect("Could not access document");
911
let body = document.body().expect("Could not access document.body");
1012
let text_node = document.create_text_node("Hello, world from Vanilla Rust!");
11-
body.append_child(text_node.as_ref()).expect("Failed to append text");
13+
body.append_child(text_node.as_ref())
14+
.expect("Failed to append text");
1215
}
1316

1417
#[wasm_bindgen(inline_js = "export function snippetTest() { console.log('Hello from JS FFI!'); }")]

0 commit comments

Comments
 (0)