Skip to content

Commit

Permalink
cleanup for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickChodowski committed Jul 22, 2024
1 parent 48876b6 commit 5b22d69
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub fn create_joystick<I: VirtualJoystickID>(
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()
},
Expand All @@ -145,8 +145,7 @@ pub fn create_joystick<I: VirtualJoystickID>(
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()
},
Expand Down

0 comments on commit 5b22d69

Please sign in to comment.