From e7ba821e6334debd6448de0ff0e8ca0b359a037a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20S=C3=A1nchez=20Mu=C3=B1oz?= Date: Sun, 8 Dec 2024 15:43:01 +0100 Subject: [PATCH] refactor: avoid "patterns are not allowed to reset the default binding mode in edition 2024" warnings (with `-W rust-2024-incompatible-pat`) --- src/git/import/tree_builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git/import/tree_builder.rs b/src/git/import/tree_builder.rs index 81dbb53..9f33f89 100644 --- a/src/git/import/tree_builder.rs +++ b/src/git/import/tree_builder.rs @@ -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!(), }; @@ -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!(), };