Skip to content

Commit 09ab6d1

Browse files
committed
Reformat
1 parent 29ec84e commit 09ab6d1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

wasm/lib/src/vm_class.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,10 @@ impl WASMVirtualMachine {
280280
}
281281
let print_fn: Box<Fn(&mut VirtualMachine, PyFuncArgs) -> PyResult> =
282282
if let Some(s) = stdout.as_string() {
283-
let print = match s.as_str() {
284-
"console" => wasm_builtins::builtin_print_console,
283+
match s.as_str() {
284+
"console" => Box::new(wasm_builtins::builtin_print_console),
285285
_ => return Err(error()),
286-
};
287-
Box::new(print)
286+
}
288287
} else if let Some(element) = stdout.dyn_ref::<web_sys::HtmlTextAreaElement>() {
289288
let element = element.clone();
290289
Box::new(

0 commit comments

Comments
 (0)