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
This commit is contained in:
Marshall Bowers 2024-01-30 14:57:54 -05:00 committed by GitHub
parent a54eaaecee
commit 2e7f9c48bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)]