Skip to content

Commit

Permalink
refactor: avoid "patterns are not allowed to reset the default bindin…
Browse files Browse the repository at this point in the history
…g mode in edition 2024" warnings (with `-W rust-2024-incompatible-pat`)
  • Loading branch information
eduardosm committed Dec 8, 2024
1 parent f5adc83 commit e7ba821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/git/import/tree_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl TreeBuilder {
tree: Self::read_tree(oid, importer)?,
base_oid: Some(oid),
};
cur_tree = match entry {
cur_tree = match *entry {
TreeBuilderEntry::SubTree { ref mut tree, .. } => tree,
TreeBuilderEntry::Entry(..) => unreachable!(),
};
Expand All @@ -153,7 +153,7 @@ impl TreeBuilder {
base_oid: None,
}
});
cur_tree = match entry {
cur_tree = match *entry {
TreeBuilderEntry::SubTree { ref mut tree, .. } => tree,
TreeBuilderEntry::Entry(..) => unreachable!(),
};
Expand Down

0 comments on commit e7ba821

Please sign in to comment.