From 33a24b58210c88571f789ee27495e3ee3a55e3a4 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 9 Jul 2022 17:05:45 +0200 Subject: Run `cargo fmt` --- graphics/src/widget/canvas/path.rs | 5 ++--- wgpu/src/image/atlas.rs | 8 +------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/graphics/src/widget/canvas/path.rs b/graphics/src/widget/canvas/path.rs index 47786224..f834e286 100644 --- a/graphics/src/widget/canvas/path.rs +++ b/graphics/src/widget/canvas/path.rs @@ -73,9 +73,8 @@ impl Path { pub(super) fn dashed(path: &Path, line_dash: LineDash<'_>) -> Path { Path::new(|builder| { - let segments_odd = (line_dash.segments.len() % 2 == 1).then(|| { - [line_dash.segments, line_dash.segments].concat() - }); + let segments_odd = (line_dash.segments.len() % 2 == 1) + .then(|| [line_dash.segments, line_dash.segments].concat()); let mut draw_line = false; diff --git a/wgpu/src/image/atlas.rs b/wgpu/src/image/atlas.rs index a5bfd9c0..953dd4e2 100644 --- a/wgpu/src/image/atlas.rs +++ b/wgpu/src/image/atlas.rs @@ -113,13 +113,7 @@ impl Atlas { match &entry { Entry::Contiguous(allocation) => { self.upload_allocation( - &buffer, - width, - height, - padding, - 0, - allocation, - encoder, + &buffer, width, height, padding, 0, allocation, encoder, ); } Entry::Fragmented { fragments, .. } => { -- cgit