From 9f96d7b937d5f1594a9cb6a62c59a4150910297d Mon Sep 17 00:00:00 2001
From: Weihang Lo <me@weihanglo.tw>
Date: Wed, 20 Mar 2024 14:53:17 -0400
Subject: [PATCH] refactor: use a dense pattern matching for str

---
 src/cargo/ops/vendor.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cargo/ops/vendor.rs b/src/cargo/ops/vendor.rs
index 3298b3a8a8a..176d6de59e3 100644
--- a/src/cargo/ops/vendor.rs
+++ b/src/cargo/ops/vendor.rs
@@ -326,7 +326,7 @@ fn cp_sources(
             // the time and if we respect them (e.g.  in git) then it'll
             // probably mess with the checksums when a vendor dir is checked
             // into someone else's source control
-            Some(".gitattributes") | Some(".gitignore") | Some(".git") => continue,
+            Some(".gitattributes" | ".gitignore" | ".git") => continue,
 
             // Temporary Cargo files
             Some(".cargo-ok") => continue,