1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Make eframe::App::as_any_mut optional to implement (#2061)

This commit is contained in:
Emil Ernerfeldt
2022-09-20 13:58:55 +02:00
committed by GitHub
parent 311eb66cae
commit 2b0bf82b51
8 changed files with 22 additions and 58 deletions

View File

@@ -1,8 +1,5 @@
use std::sync::Arc;
#[cfg(target_arch = "wasm32")]
use core::any::Any;
use eframe::{
egui_wgpu::{self, wgpu},
wgpu::util::DeviceExt,
@@ -120,11 +117,6 @@ impl eframe::App for Custom3d {
});
});
}
#[cfg(target_arch = "wasm32")]
fn as_any_mut(&mut self) -> &mut dyn Any {
&mut *self
}
}
impl Custom3d {