From 5b22d6942557a7efaf3ba0361fd34dfd59f4677f Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 22 Jul 2024 21:56:58 +0200 Subject: [PATCH] cleanup for clippy --- src/utils.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index 71276df..3f53774 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -125,7 +125,7 @@ pub fn create_joystick( VirtualJoystickUIKnob, ImageBundle { image: UiImage { - color: knob_color.unwrap_or(Color::WHITE.with_alpha(1.0)).into(), + color: knob_color.unwrap_or(Color::WHITE.with_alpha(1.0)), texture: knob_img, ..default() }, @@ -145,8 +145,7 @@ pub fn create_joystick( ImageBundle { image: UiImage { color: background_color - .unwrap_or(Color::WHITE.with_alpha(1.0)) - .into(), + .unwrap_or(Color::WHITE.with_alpha(1.0)), texture: background_img, ..default() },