From 2355828d41d6bb45d283d0b371a5ef1f542e6012 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Fri, 15 Apr 2022 15:18:04 +0200 Subject: [PATCH] Remove epaint::mutex::Arc type alias --- egui/src/context.rs | 1 + egui/src/data/input.rs | 2 +- egui/src/grid.rs | 2 +- egui/src/memory.rs | 2 +- egui/src/menu.rs | 3 ++- egui/src/painter.rs | 3 ++- egui/src/style.rs | 4 ++-- egui/src/ui.rs | 4 +++- egui/src/util/id_type_map.rs | 2 +- egui/src/widget_text.rs | 2 +- egui/src/widgets/text_edit/builder.rs | 2 +- epaint/src/mutex.rs | 12 ------------ epaint/src/shape.rs | 18 ++++++++---------- epaint/src/text/font.rs | 3 ++- epaint/src/text/fonts.rs | 3 ++- epaint/src/text/text_layout.rs | 3 ++- epaint/src/text/text_layout_types.rs | 3 ++- epaint/src/texture_handle.rs | 8 +++----- 18 files changed, 35 insertions(+), 42 deletions(-) diff --git a/egui/src/context.rs b/egui/src/context.rs index 0c55b7131..aaf282638 100644 --- a/egui/src/context.rs +++ b/egui/src/context.rs @@ -1,4 +1,5 @@ // #![warn(missing_docs)] +use std::sync::Arc; use crate::{ animation_manager::AnimationManager, data::output::PlatformOutput, frame_state::FrameState, diff --git a/egui/src/data/input.rs b/egui/src/data/input.rs index e71946381..6b918a570 100644 --- a/egui/src/data/input.rs +++ b/egui/src/data/input.rs @@ -146,7 +146,7 @@ pub struct DroppedFile { /// Set by the `egui_web` backend. pub last_modified: Option, /// Set by the `egui_web` backend. - pub bytes: Option>, + pub bytes: Option>, } /// An input event generated by the integration. diff --git a/egui/src/grid.rs b/egui/src/grid.rs index 780164803..c903c157a 100644 --- a/egui/src/grid.rs +++ b/egui/src/grid.rs @@ -46,7 +46,7 @@ impl State { pub(crate) struct GridLayout { ctx: Context, - style: epaint::mutex::Arc