From 0c300e183d33b7aaf4ac6d0601795f38eb256f01 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 9 Nov 2023 19:48:24 +0100 Subject: [PATCH] Replace newtype with type alias --- crates/eframe/src/native/run.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index 13bb0ffbc7d..62b04e17792 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