Skip to content

Commit a33105e

Browse files
authored
Rollup merge of rust-lang#140111 - jogru0:redundant_pattern, r=compiler-errors
cleanup redundant pattern instances Just two small code cleanups.
2 parents 809c35f + 3ecfe0e commit a33105e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3265,7 +3265,7 @@ impl Hash for Path {
32653265
if !verbatim {
32663266
component_start += match tail {
32673267
[b'.'] => 1,
3268-
[b'.', sep @ _, ..] if is_sep_byte(*sep) => 1,
3268+
[b'.', sep, ..] if is_sep_byte(*sep) => 1,
32693269
_ => 0,
32703270
};
32713271
}

0 commit comments

Comments
 (0)