Change module import

This commit is contained in:
Daniel Schindler
2018-12-03 11:37:30 +01:00
parent a25925346a
commit 53c65039b9
5 changed files with 8 additions and 8 deletions

View File

@ -64,7 +64,9 @@ fn app(name: &str) {
/// Entry point into the program from JavaScript
#[wasm_bindgen(start)]
pub fn run() {
pub fn run() -> Result<(), JsValue> {
console_error_panic_hook::set_once();
app("todos-wasmbindgen");
Ok(())
}