Skip to content

Commit

Permalink
Use implicit collect for explicitly typed variable
Browse files Browse the repository at this point in the history
Co-authored-by: ickshonpe <[email protected]>
  • Loading branch information
StrikeForceZero and ickshonpe authored Nov 13, 2024
1 parent 46a1abb commit fcbe1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/layout/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn print_ui_layout_tree(ui_surface: &UiSurface) {
.entity_to_taffy
.iter()
.map(|(&ui_entity, &taffy_node)| (taffy_node, ui_entity))
.collect::<HashMap<NodeId, Entity>>();
.collect();
for (&camera_entity, root_node_set) in ui_surface.camera_root_nodes.iter() {
bevy_utils::tracing::info!("Layout tree for camera entity: {camera_entity}");
for &root_node_entity in root_node_set.iter() {
Expand Down

0 comments on commit fcbe1d3

Please sign in to comment.