From 9a3c81f336b8e29c64471026860f3c9d8b56348c Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 16:24:31 +0700 Subject: Introduce first-class `svg` module in `iced_native` --- wgpu/src/backend.rs | 2 +- wgpu/src/image.rs | 2 +- wgpu/src/image/vector.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'wgpu') diff --git a/wgpu/src/backend.rs b/wgpu/src/backend.rs index 0f4c35c3..bb84cc8f 100644 --- a/wgpu/src/backend.rs +++ b/wgpu/src/backend.rs @@ -311,7 +311,7 @@ impl backend::Image for Backend { impl backend::Svg for Backend { fn viewport_dimensions( &self, - handle: &iced_native::widget::svg::Handle, + handle: &iced_native::svg::Handle, ) -> (u32, u32) { self.image_pipeline.viewport_dimensions(handle) } diff --git a/wgpu/src/image.rs b/wgpu/src/image.rs index 01af2571..a59dc04b 100644 --- a/wgpu/src/image.rs +++ b/wgpu/src/image.rs @@ -20,7 +20,7 @@ use bytemuck::{Pod, Zeroable}; use iced_native::image; #[cfg(feature = "svg")] -use iced_native::widget::svg; +use iced_native::svg; #[derive(Debug)] pub struct Pipeline { diff --git a/wgpu/src/image/vector.rs b/wgpu/src/image/vector.rs index edf339f5..4c830913 100644 --- a/wgpu/src/image/vector.rs +++ b/wgpu/src/image/vector.rs @@ -1,6 +1,6 @@ use crate::image::atlas::{self, Atlas}; -use iced_native::widget::svg; +use iced_native::svg; use std::collections::{HashMap, HashSet}; use std::fs; -- cgit