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:
parent
a54eaaecee
commit
2e7f9c48bb
1 changed files with 3 additions and 3 deletions
|
@ -3,8 +3,8 @@ use std::{iter, mem, ops::Range};
|
||||||
use crate::{
|
use crate::{
|
||||||
black, phi, point, quad, rems, AbsoluteLength, Bounds, ContentMask, Corners, CornersRefinement,
|
black, phi, point, quad, rems, AbsoluteLength, Bounds, ContentMask, Corners, CornersRefinement,
|
||||||
CursorStyle, DefiniteLength, Edges, EdgesRefinement, ElementContext, Font, FontFeatures,
|
CursorStyle, DefiniteLength, Edges, EdgesRefinement, ElementContext, Font, FontFeatures,
|
||||||
FontStyle, FontWeight, Global, Hsla, Length, Pixels, Point, PointRefinement, Rgba,
|
FontStyle, FontWeight, Hsla, Length, Pixels, Point, PointRefinement, Rgba, SharedString, Size,
|
||||||
SharedString, Size, SizeRefinement, Styled, TextRun,
|
SizeRefinement, Styled, TextRun,
|
||||||
};
|
};
|
||||||
use collections::HashSet;
|
use collections::HashSet;
|
||||||
use refineable::Refineable;
|
use refineable::Refineable;
|
||||||
|
@ -21,7 +21,7 @@ pub use taffy::style::{
|
||||||
pub struct DebugBelow;
|
pub struct DebugBelow;
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
#[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
|
/// The CSS styling that can be applied to an element via the `Styled` trait
|
||||||
#[derive(Clone, Refineable, Debug)]
|
#[derive(Clone, Refineable, Debug)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue