diff options
author | Jonas Schievink <[email protected]> | 2021-02-12 11:09:54 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-02-12 12:05:56 +0000 |
commit | 70f388cedba89c204131ebc81a202563a8e19437 (patch) | |
tree | a889b01d490f653970ff54320e2edcb91c1893b1 /crates/rust-analyzer/src/to_proto.rs | |
parent | b0f20a795d6b1f8d36d1cbe294e54ac592b98f5e (diff) |
Pin Rust to 1.49.0 on CI
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 5236932e8..be10ac1ae 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -528,7 +528,8 @@ pub(crate) fn url_from_abs_path(path: &Path) -> lsp_types::Url { | |||
528 | assert!(path.is_absolute()); | 528 | assert!(path.is_absolute()); |
529 | let url = lsp_types::Url::from_file_path(path).unwrap(); | 529 | let url = lsp_types::Url::from_file_path(path).unwrap(); |
530 | match path.components().next() { | 530 | match path.components().next() { |
531 | Some(path::Component::Prefix(prefix)) if matches!(prefix.kind(), path::Prefix::Disk(_) | path::Prefix::VerbatimDisk(_)) => | 531 | Some(path::Component::Prefix(prefix)) |
532 | if matches!(prefix.kind(), path::Prefix::Disk(_) | path::Prefix::VerbatimDisk(_)) => | ||
532 | { | 533 | { |
533 | // Need to lowercase driver letter | 534 | // Need to lowercase driver letter |
534 | } | 535 | } |