From 913cef33610dbeb17485534f64864ca8af5d9b72 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 29 May 2024 13:13:00 +0200 Subject: [PATCH] Enforce eframe errors are `Send` and `Sync` (#4574) * Follow-up to https://github.com/emilk/egui/pull/4565 --- crates/eframe/src/epi.rs | 2 +- crates/eframe/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/eframe/src/epi.rs b/crates/eframe/src/epi.rs index b1a432dd..ac6585c3 100644 --- a/crates/eframe/src/epi.rs +++ b/crates/eframe/src/epi.rs @@ -41,7 +41,7 @@ pub type EventLoopBuilderHook = Box) #[cfg(any(feature = "glow", feature = "wgpu"))] pub type WindowBuilderHook = Box egui::ViewportBuilder>; -type DynError = Box; +type DynError = Box; /// This is how your app is created. /// diff --git a/crates/eframe/src/lib.rs b/crates/eframe/src/lib.rs index 0fc1f26a..9f9f3a4c 100644 --- a/crates/eframe/src/lib.rs +++ b/crates/eframe/src/lib.rs @@ -334,7 +334,7 @@ pub fn run_simple_native( #[derive(Debug)] pub enum Error { /// Something went wrong in user code when creating the app. - AppCreation(Box), + AppCreation(Box), /// An error from [`winit`]. #[cfg(not(target_arch = "wasm32"))]