fix wasm warning
This commit is contained in:
parent
5af15fe443
commit
e3ef2eddd4
@ -453,7 +453,7 @@ pub fn run<E: Example>(title: &str) {
|
|||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
pub fn run<E: Example>(title: &str) {
|
pub fn run<E: Example>(title: &str) {
|
||||||
use wasm_bindgen::{prelude::*, JsCast};
|
use wasm_bindgen::prelude::*;
|
||||||
|
|
||||||
let title = title.to_owned();
|
let title = title.to_owned();
|
||||||
wasm_bindgen_futures::spawn_local(async move {
|
wasm_bindgen_futures::spawn_local(async move {
|
||||||
|
Loading…
Reference in New Issue
Block a user