Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeForceZero committed Feb 23, 2024
1 parent 042c58a commit ef7d9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/bevy_picking_ui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub fn ui_picking(
mut node_query: Query<NodeQuery>,
mut output: EventWriter<PointerHits>,
) {
let ui_scale = ui_scale.map(|f| f.0).unwrap_or(1.0) as f32;
let ui_scale = ui_scale.map(|f| f.0).unwrap_or(1.0);
for (pointer, location) in pointers.iter().filter_map(|(pointer, pointer_location)| {
pointer_location
.location()
Expand Down

0 comments on commit ef7d9c2

Please sign in to comment.