Skip to content

Commit

Permalink
Change get(0) to first()
Browse files Browse the repository at this point in the history
  • Loading branch information
100-TomatoJuice committed Jan 5, 2024
1 parent a55d341 commit efa1736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clashing_inputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl<A: Actionlike> InputMap<A> {
let mut clashes = Vec::default();

for action_pair in A::variants().combinations(2) {
let action_a = action_pair.get(0).unwrap().clone();
let action_a = action_pair.first().unwrap().clone();
let action_b = action_pair.get(1).unwrap().clone();

if let Some(clash) = self.possible_clash(action_a, action_b) {
Expand Down

0 comments on commit efa1736

Please sign in to comment.