about summary refs log tree commit diff
path: root/library/std/src/path.rs
diff options
context:
space:
mode:
authorJonathan Gruner <jogru0@gmail.com>2025-04-21 14:15:32 +0200
committerJonathan Gruner <jogru0@gmail.com>2025-04-21 14:15:32 +0200
commit2039b36f908b20e7be8a60e903a2a26b21c65ace (patch)
tree512be6da9adc05e7b3b7c22adb75cb82101d9a58 /library/std/src/path.rs
parentb8005bff3248cfc6e327faf4fa631ac49bb49ba9 (diff)
downloadrust-2039b36f908b20e7be8a60e903a2a26b21c65ace.tar.gz
rust-2039b36f908b20e7be8a60e903a2a26b21c65ace.zip
cleanup redundant pattern instances
Diffstat (limited to 'library/std/src/path.rs')
-rw-r--r--library/std/src/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index 980213be7ea..50f403ba411 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -3265,7 +3265,7 @@ impl Hash for Path {
                 if !verbatim {
                     component_start += match tail {
                         [b'.'] => 1,
-                        [b'.', sep @ _, ..] if is_sep_byte(*sep) => 1,
+                        [b'.', sep, ..] if is_sep_byte(*sep) => 1,
                         _ => 0,
                     };
                 }