diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-04-21 18:53:20 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-21 18:53:20 +0000 |
| commit | 8ecaf148e793c93cdd4b14855eb55e04fd15768a (patch) | |
| tree | dee0200479fc90dad58d1d6d5fe53cf19b2469c2 /library/std/src | |
| parent | ef167557b6a25659f1a66afc6ce2dd9fd326e750 (diff) | |
| parent | 2039b36f908b20e7be8a60e903a2a26b21c65ace (diff) | |
| download | rust-8ecaf148e793c93cdd4b14855eb55e04fd15768a.tar.gz rust-8ecaf148e793c93cdd4b14855eb55e04fd15768a.zip | |
Rollup merge of #140111 - jogru0:redundant_pattern, r=compiler-errors
cleanup redundant pattern instances Just two small code cleanups.
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/path.rs | 2 |
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, }; } |
