1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00

Fix wasm compilation

This commit is contained in:
Emil Ernerfeldt
2023-11-13 18:57:02 +01:00
parent 4d7fc70803
commit dcd1675e59
2 changed files with 2 additions and 2 deletions

View File

@@ -196,7 +196,7 @@ fn set_clipboard_text(s: &str) {
let future = wasm_bindgen_futures::JsFuture::from(promise);
let future = async move {
if let Err(err) = future.await {
log::error!("Copy/cut action failed: {err}");
log::error!("Copy/cut action failed: {err:?}");
}
};
wasm_bindgen_futures::spawn_local(future);

View File

@@ -96,7 +96,7 @@ impl WebRunner {
log::debug!("Unsubscribing from {} events", events_to_unsubscribe.len());
for x in events_to_unsubscribe {
if let Err(err) = x.unsubscribe() {
log::warn!("Failed to unsubscribe from event: {err}");
log::warn!("Failed to unsubscribe from event: {err:?}");
}
}
}