mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Nest all the or-patterns!
This commit is contained in:
parent
c82a9141ab
commit
95c8c65139
26 changed files with 133 additions and 151 deletions
|
@ -389,7 +389,7 @@ impl VirtualPath {
|
|||
|
||||
match (file_stem, extension) {
|
||||
(None, None) => None,
|
||||
(None, Some(_)) | (Some(""), Some(_)) => Some((file_name, None)),
|
||||
(None | Some(""), Some(_)) => Some((file_name, None)),
|
||||
(Some(file_stem), extension) => Some((file_stem, extension)),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue