diff options
author | Luciano Bestia <[email protected]> | 2021-02-18 15:51:21 +0000 |
---|---|---|
committer | Luciano Bestia <[email protected]> | 2021-02-18 15:51:21 +0000 |
commit | 864fb063a000a38ce28c8c1d0153dc080faf1cdb (patch) | |
tree | 4d267deee499fd09590ac84e1f56268531996c27 /crates/rust-analyzer/src/to_proto.rs | |
parent | 790bda1f851eed1837415919897055f1635c066d (diff) |
rustfmt 1.4.30-stable
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index c903ab523..2526f4591 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -516,7 +516,8 @@ pub(crate) fn url_from_abs_path(path: &Path) -> lsp_types::Url { | |||
516 | assert!(path.is_absolute()); | 516 | assert!(path.is_absolute()); |
517 | let url = lsp_types::Url::from_file_path(path).unwrap(); | 517 | let url = lsp_types::Url::from_file_path(path).unwrap(); |
518 | match path.components().next() { | 518 | match path.components().next() { |
519 | Some(path::Component::Prefix(prefix)) if matches!(prefix.kind(), path::Prefix::Disk(_) | path::Prefix::VerbatimDisk(_)) => | 519 | Some(path::Component::Prefix(prefix)) |
520 | if matches!(prefix.kind(), path::Prefix::Disk(_) | path::Prefix::VerbatimDisk(_)) => | ||
520 | { | 521 | { |
521 | // Need to lowercase driver letter | 522 | // Need to lowercase driver letter |
522 | } | 523 | } |