summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:22:56 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:37:13 +0100
commit9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd (patch)
treedd8a9407058915c152ce6544ba20b75240ca85be /wgpu
parent28caeccf22d163e9014b5ed26334b6085683a28b (diff)
downloadiced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.tar.gz
iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.tar.bz2
iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.zip
Run `cargo fmt`
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/geometry.rs2
-rw-r--r--wgpu/src/image/mod.rs2
-rw-r--r--wgpu/src/image/raster.rs2
-rw-r--r--wgpu/src/layer.rs4
-rw-r--r--wgpu/src/lib.rs4
-rw-r--r--wgpu/src/quad/gradient.rs2
-rw-r--r--wgpu/src/quad/solid.rs2
-rw-r--r--wgpu/src/text.rs2
-rw-r--r--wgpu/src/triangle.rs12
9 files changed, 16 insertions, 16 deletions
diff --git a/wgpu/src/geometry.rs b/wgpu/src/geometry.rs
index d2ffda53..8d161015 100644
--- a/wgpu/src/geometry.rs
+++ b/wgpu/src/geometry.rs
@@ -713,7 +713,7 @@ fn into_fill_rule(rule: fill::Rule) -> lyon::tessellation::FillRule {
pub(super) fn dashed(path: &Path, line_dash: LineDash<'_>) -> Path {
use lyon::algorithms::walk::{
- walk_along_path, RepeatedPattern, WalkerEvent,
+ RepeatedPattern, WalkerEvent, walk_along_path,
};
use lyon::path::iterator::PathIterator;
diff --git a/wgpu/src/image/mod.rs b/wgpu/src/image/mod.rs
index caac0813..6cb18a07 100644
--- a/wgpu/src/image/mod.rs
+++ b/wgpu/src/image/mod.rs
@@ -9,8 +9,8 @@ mod raster;
#[cfg(feature = "svg")]
mod vector;
-use crate::core::{Rectangle, Size, Transformation};
use crate::Buffer;
+use crate::core::{Rectangle, Size, Transformation};
use bytemuck::{Pod, Zeroable};
diff --git a/wgpu/src/image/raster.rs b/wgpu/src/image/raster.rs
index 4d3c3125..83777807 100644
--- a/wgpu/src/image/raster.rs
+++ b/wgpu/src/image/raster.rs
@@ -1,5 +1,5 @@
-use crate::core::image;
use crate::core::Size;
+use crate::core::image;
use crate::graphics;
use crate::graphics::image::image_rs;
use crate::image::atlas::{self, Atlas};
diff --git a/wgpu/src/layer.rs b/wgpu/src/layer.rs
index 68d5a015..2255b3f2 100644
--- a/wgpu/src/layer.rs
+++ b/wgpu/src/layer.rs
@@ -1,11 +1,11 @@
use crate::core::{
- self, renderer, Background, Color, Point, Rectangle, Svg, Transformation,
+ self, Background, Color, Point, Rectangle, Svg, Transformation, renderer,
};
use crate::graphics;
+use crate::graphics::Mesh;
use crate::graphics::color;
use crate::graphics::layer;
use crate::graphics::text::{Editor, Paragraph};
-use crate::graphics::Mesh;
use crate::image::{self, Image};
use crate::primitive::{self, Primitive};
use crate::quad::{self, Quad};
diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs
index b1998da7..2ef9992c 100644
--- a/wgpu/src/lib.rs
+++ b/wgpu/src/lib.rs
@@ -64,8 +64,8 @@ use crate::core::{
Background, Color, Font, Pixels, Point, Rectangle, Size, Transformation,
Vector,
};
-use crate::graphics::text::{Editor, Paragraph};
use crate::graphics::Viewport;
+use crate::graphics::text::{Editor, Paragraph};
/// A [`wgpu`] graphics renderer for [`iced`].
///
@@ -403,9 +403,9 @@ impl Renderer {
overlay: &[impl AsRef<str>],
viewport: &Viewport,
) {
+ use crate::core::Renderer as _;
use crate::core::alignment;
use crate::core::text::Renderer as _;
- use crate::core::Renderer as _;
self.with_layer(
Rectangle::with_size(viewport.logical_size()),
diff --git a/wgpu/src/quad/gradient.rs b/wgpu/src/quad/gradient.rs
index 3d4ca4db..68c11157 100644
--- a/wgpu/src/quad/gradient.rs
+++ b/wgpu/src/quad/gradient.rs
@@ -1,6 +1,6 @@
+use crate::Buffer;
use crate::graphics::gradient;
use crate::quad::{self, Quad};
-use crate::Buffer;
use bytemuck::{Pod, Zeroable};
use std::ops::Range;
diff --git a/wgpu/src/quad/solid.rs b/wgpu/src/quad/solid.rs
index f3e85ce7..b6d88486 100644
--- a/wgpu/src/quad/solid.rs
+++ b/wgpu/src/quad/solid.rs
@@ -1,6 +1,6 @@
+use crate::Buffer;
use crate::graphics::color;
use crate::quad::{self, Quad};
-use crate::Buffer;
use bytemuck::{Pod, Zeroable};
use std::ops::Range;
diff --git a/wgpu/src/text.rs b/wgpu/src/text.rs
index 591bc0b7..33fbd4dc 100644
--- a/wgpu/src/text.rs
+++ b/wgpu/src/text.rs
@@ -3,7 +3,7 @@ use crate::core::{Rectangle, Size, Transformation};
use crate::graphics::cache;
use crate::graphics::color;
use crate::graphics::text::cache::{self as text_cache, Cache as BufferCache};
-use crate::graphics::text::{font_system, to_color, Editor, Paragraph};
+use crate::graphics::text::{Editor, Paragraph, font_system, to_color};
use rustc_hash::FxHashMap;
use std::collections::hash_map;
diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs
index ab88be3b..a2b976ea 100644
--- a/wgpu/src/triangle.rs
+++ b/wgpu/src/triangle.rs
@@ -1,10 +1,10 @@
//! Draw meshes of triangles.
mod msaa;
+use crate::Buffer;
use crate::core::{Rectangle, Size, Transformation};
-use crate::graphics::mesh::{self, Mesh};
use crate::graphics::Antialiasing;
-use crate::Buffer;
+use crate::graphics::mesh::{self, Mesh};
use rustc_hash::FxHashMap;
use std::collections::hash_map;
@@ -644,10 +644,10 @@ impl Uniforms {
}
mod solid {
- use crate::graphics::mesh;
+ use crate::Buffer;
use crate::graphics::Antialiasing;
+ use crate::graphics::mesh;
use crate::triangle;
- use crate::Buffer;
#[derive(Debug)]
pub struct Pipeline {
@@ -795,11 +795,11 @@ mod solid {
}
mod gradient {
+ use crate::Buffer;
+ use crate::graphics::Antialiasing;
use crate::graphics::color;
use crate::graphics::mesh;
- use crate::graphics::Antialiasing;
use crate::triangle;
- use crate::Buffer;
#[derive(Debug)]
pub struct Pipeline {