Skip to content

Commit 9f96d7b

Browse files
committed
refactor: use a dense pattern matching for str
1 parent 75712e1 commit 9f96d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/vendor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ fn cp_sources(
326326
// the time and if we respect them (e.g. in git) then it'll
327327
// probably mess with the checksums when a vendor dir is checked
328328
// into someone else's source control
329-
Some(".gitattributes") | Some(".gitignore") | Some(".git") => continue,
329+
Some(".gitattributes" | ".gitignore" | ".git") => continue,
330330

331331
// Temporary Cargo files
332332
Some(".cargo-ok") => continue,

0 commit comments

Comments
 (0)