diff options
author | Laurențiu Nicola <[email protected]> | 2021-05-24 14:31:54 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2021-05-24 14:31:54 +0100 |
commit | 47afa4a5fc18eb84c4838848f02eca655b0256d9 (patch) | |
tree | ed50dd36cb29970196efd23afc4794590fe09b00 /crates/rust-analyzer/src/to_proto.rs | |
parent | 74f1b21b0856b6c0e680557edf1914e83203718b (diff) |
Bump misc deps
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 0a3a56773..410384ae5 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -604,7 +604,7 @@ pub(crate) fn url_from_abs_path(path: &Path) -> lsp_types::Url { | |||
604 | // Note: lowercasing the `path` itself doesn't help, the `Url::parse` | 604 | // Note: lowercasing the `path` itself doesn't help, the `Url::parse` |
605 | // machinery *also* canonicalizes the drive letter. So, just massage the | 605 | // machinery *also* canonicalizes the drive letter. So, just massage the |
606 | // string in place. | 606 | // string in place. |
607 | let mut url = url.into_string(); | 607 | let mut url: String = url.into(); |
608 | url[driver_letter_range].make_ascii_lowercase(); | 608 | url[driver_letter_range].make_ascii_lowercase(); |
609 | lsp_types::Url::parse(&url).unwrap() | 609 | lsp_types::Url::parse(&url).unwrap() |
610 | } | 610 | } |