From 867464f1a2453330c39db78d7ec0152d1dfe3864 Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Tue, 15 Jul 2025 17:59:09 +0100 Subject: [PATCH] Removed trailing whitespace. --- examples/ui/drag_to_scroll.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/ui/drag_to_scroll.rs b/examples/ui/drag_to_scroll.rs index bed46ffc04..6c07b753d2 100644 --- a/examples/ui/drag_to_scroll.rs +++ b/examples/ui/drag_to_scroll.rs @@ -51,7 +51,7 @@ fn setup(mut commands: Commands) { With, >| { if let Ok((mut scroll_position, start)) = scroll_position_query.single_mut() { - scroll_position.0 = (start.0 - drag.distance / ui_scale.0).max(Vec2::ZERO); + scroll_position.0 = (start.0 - drag.distance / ui_scale.0).max(Vec2::ZERO); } }, ) @@ -81,12 +81,12 @@ fn setup(mut commands: Commands) { grid_template_columns: RepeatedGridTrack::px(h as i32, 100.), ..Default::default() }) - .with_children(|commands| { + .with_children(|commands| { for y in 0..h { for x in 0..w { let tile_color = if (x + y) % 2 == 1 { let hue = ((x as f32 / w as f32) * 270.0) + ((y as f32 / h as f32) * 90.0); - Color::hsl(hue, 1., 0.5) + Color::hsl(hue, 1., 0.5) } else { Color::BLACK }; @@ -116,6 +116,6 @@ fn setup(mut commands: Commands) { }); } } - }); + }); }); }