diff options
author | Lukas Wirth <[email protected]> | 2021-06-17 16:37:14 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-06-17 16:37:14 +0100 |
commit | 95c8c65139c10e4de44367fead8dff88511e6d46 (patch) | |
tree | 4326d46ee282c133123f3a08aaee7d640f007050 /crates/vfs/src | |
parent | c82a9141abe6b6cbf5b55710dc8a315a3839081b (diff) |
Nest all the or-patterns!
Diffstat (limited to 'crates/vfs/src')
-rw-r--r-- | crates/vfs/src/vfs_path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/vfs/src/vfs_path.rs b/crates/vfs/src/vfs_path.rs index 2b3d7fd84..ef2d7657a 100644 --- a/crates/vfs/src/vfs_path.rs +++ b/crates/vfs/src/vfs_path.rs | |||
@@ -389,7 +389,7 @@ impl VirtualPath { | |||
389 | 389 | ||
390 | match (file_stem, extension) { | 390 | match (file_stem, extension) { |
391 | (None, None) => None, | 391 | (None, None) => None, |
392 | (None, Some(_)) | (Some(""), Some(_)) => Some((file_name, None)), | 392 | (None | Some(""), Some(_)) => Some((file_name, None)), |
393 | (Some(file_stem), extension) => Some((file_stem, extension)), | 393 | (Some(file_stem), extension) => Some((file_stem, extension)), |
394 | } | 394 | } |
395 | } | 395 | } |