Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Oct 27, 2024
1 parent 3bc1f4f commit f1d1506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/src/infrastructure/ui/mapping_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7801,10 +7801,10 @@ fn pick_virtual_control_element(
let currently_available_elements: Vec<_> = grouped_mappings
.iter()
.filter(|(e, mappings)| match e {
VirtualControlElement::Indexed { id, character: ch } => {
VirtualControlElement::Indexed { character: ch, .. } => {
*ch == character && include_actual_element(mappings)
}
VirtualControlElement::Named { id, character } => include_actual_element(mappings),
VirtualControlElement::Named { .. } => include_actual_element(mappings),
})
.map(|(e, _)| e.id().to_string())
.collect();
Expand Down

0 comments on commit f1d1506

Please sign in to comment.