From 2e7f9c48bba495af94622914abe18ed27bb614d5 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 30 Jan 2024 14:57:54 -0500 Subject: [PATCH] Use fully-qualified name to avoid an unused import (#7104) This PR adjusts how we implement `Global` conditionally to avoid an unused import when compiling in release mode. Release Notes: - N/A --- crates/gpui/src/style.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/gpui/src/style.rs b/crates/gpui/src/style.rs index ef2622e3eb61e61d35780d895d2a1ebc5d85057b..6118a0ae963621d22944f54e59b2b1b4ce361194 100644 --- a/crates/gpui/src/style.rs +++ b/crates/gpui/src/style.rs @@ -3,8 +3,8 @@ use std::{iter, mem, ops::Range}; use crate::{ black, phi, point, quad, rems, AbsoluteLength, Bounds, ContentMask, Corners, CornersRefinement, CursorStyle, DefiniteLength, Edges, EdgesRefinement, ElementContext, Font, FontFeatures, - FontStyle, FontWeight, Global, Hsla, Length, Pixels, Point, PointRefinement, Rgba, - SharedString, Size, SizeRefinement, Styled, TextRun, + FontStyle, FontWeight, Hsla, Length, Pixels, Point, PointRefinement, Rgba, SharedString, Size, + SizeRefinement, Styled, TextRun, }; use collections::HashSet; use refineable::Refineable; @@ -21,7 +21,7 @@ pub use taffy::style::{ pub struct DebugBelow; #[cfg(debug_assertions)] -impl Global for DebugBelow {} +impl crate::Global for DebugBelow {} /// The CSS styling that can be applied to an element via the `Styled` trait #[derive(Clone, Refineable, Debug)]