Rollup merge of #140111 - jogru0:redundant_pattern, r=compiler-errors
cleanup redundant pattern instances Just two small code cleanups.
This commit is contained in:
commit
8ecaf148e7
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue