mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Exclude take_app from wasm32 in egui_kittest (#8178)
Otherwise `egui` won't compile for `wasm32` targets anymore. A bit odd that this was not caught in CI.
This commit is contained in:
@@ -10,6 +10,7 @@ type AppKindUi<'a> = Box<dyn FnMut(&mut egui::Ui) + 'a>;
|
||||
#[cfg(feature = "eframe")]
|
||||
pub(crate) struct AppKindEframe<State> {
|
||||
pub get_app: fn(&mut State) -> &mut dyn eframe::App,
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub take_app: fn(State) -> Box<dyn eframe::App>,
|
||||
pub frame: eframe::Frame,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user