Skip to content

Commit

Permalink
cargo fmt && make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Jun 23, 2022
1 parent 327186b commit 012d301
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/emscripten/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,11 @@ pub fn run_emscripten_instance(
.map_err(|e| RuntimeError::new(e.to_string()))?;
func.call(&[Val::I32(arg as i32)])?;
} else if let Ok(name) = emscripten_get_main_func_name(instance, &main_func_names) {
emscripten_call_main(instance, &name, env, path, &args)?;
emscripten_call_main(instance, name, env, path, &args)?;
} else {
return Err(RuntimeError::new(format!("No main function found (searched: {main_func_names:?}) and no entrypoint specified")));
return Err(RuntimeError::new(format!(
"No main function found (searched: {main_func_names:?}) and no entrypoint specified"
)));
}

// TODO atexit for emscripten
Expand Down

0 comments on commit 012d301

Please sign in to comment.