From df5812ed6081bdcb007c52303cbb737afce5d427 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Tue, 8 Oct 2024 20:53:34 +0100 Subject: [PATCH] Remove "prelude::" from Taffy imports --- packages/blitz-renderer-vello/src/renderer/render.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/blitz-renderer-vello/src/renderer/render.rs b/packages/blitz-renderer-vello/src/renderer/render.rs index d99026f4..dad2f712 100644 --- a/packages/blitz-renderer-vello/src/renderer/render.rs +++ b/packages/blitz-renderer-vello/src/renderer/render.rs @@ -46,7 +46,7 @@ use style::values::generics::image::{ GenericCircle, GenericEllipse, GenericEndingShape, ShapeExtent, }; use style::values::specified::percentage::ToPercentage; -use taffy::prelude::Layout; +use taffy::Layout; use vello::kurbo::{BezPath, Cap, Join}; use vello::peniko::Gradient; use vello::{ @@ -340,7 +340,7 @@ impl VelloSceneGenerator<'_> { let element = &self.dom.as_ref().tree()[node_id]; // Early return if the element is hidden - if matches!(element.style.display, taffy::prelude::Display::None) { + if matches!(element.style.display, taffy::Display::None) { return; } @@ -786,10 +786,10 @@ impl ElementCx<'_> { let stroke = Stroke::new(self.scale); let stroke_color = match self.element.style.display { - taffy::prelude::Display::Block => Color::rgb(1.0, 0.0, 0.0), - taffy::prelude::Display::Flex => Color::rgb(0.0, 1.0, 0.0), - taffy::prelude::Display::Grid => Color::rgb(0.0, 0.0, 1.0), - taffy::prelude::Display::None => Color::rgb(0.0, 0.0, 1.0), + taffy::Display::Block => Color::rgb(1.0, 0.0, 0.0), + taffy::Display::Flex => Color::rgb(0.0, 1.0, 0.0), + taffy::Display::Grid => Color::rgb(0.0, 0.0, 1.0), + taffy::Display::None => Color::rgb(0.0, 0.0, 1.0), }; scene.stroke(&stroke, self.transform, stroke_color, None, &shape);