diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index 13bb0ffbc..62b04e177 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -1908,22 +1908,7 @@ mod wgpu_integration { parent_id: ViewportId, } - #[derive(Default)] - pub struct Viewports(ViewportIdMap); - - impl std::ops::Deref for Viewports { - type Target = ViewportIdMap; - - fn deref(&self) -> &Self::Target { - &self.0 - } - } - - impl std::ops::DerefMut for Viewports { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } + pub type Viewports = ViewportIdMap; /// State that is initialized when the application is first starts running via /// a Resumed event. On Android this ensures that any graphics state is only