Fix formatting

This commit is contained in:
Simon Hausmann 2021-12-13 13:25:44 +01:00 committed by Simon Hausmann
parent 93c28d12db
commit 5b31fa97a1

View file

@ -1226,8 +1226,9 @@ impl sixtyfps_corelib::backend::Backend for Backend {
fn post_event(&'static self, event: Box<dyn FnOnce() + Send>) { fn post_event(&'static self, event: Box<dyn FnOnce() + Send>) {
let e = crate::event_loop::CustomEvent::UserEvent(event); let e = crate::event_loop::CustomEvent::UserEvent(event);
#[cfg(not(target_arch = "wasm32"))] #[cfg(not(target_arch = "wasm32"))]
crate::event_loop::GLOBAL_PROXY.get_or_init(Default::default).lock().unwrap().send_event(e); crate::event_loop::GLOBAL_PROXY.get_or_init(Default::default).lock().unwrap().send_event(e);
#[cfg(target_arch = "wasm32")] { #[cfg(target_arch = "wasm32")]
{
use wasm_bindgen::closure::Closure; use wasm_bindgen::closure::Closure;
use wasm_bindgen::JsCast; use wasm_bindgen::JsCast;