diff options
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r-- | crates/ra_lsp_server/src/world.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs index be3a5bfb8..f139a5728 100644 --- a/crates/ra_lsp_server/src/world.rs +++ b/crates/ra_lsp_server/src/world.rs | |||
@@ -22,7 +22,6 @@ use crate::{ | |||
22 | main_loop::pending_requests::{CompletedRequest, LatestRequests}, | 22 | main_loop::pending_requests::{CompletedRequest, LatestRequests}, |
23 | LspError, Result, | 23 | LspError, Result, |
24 | }; | 24 | }; |
25 | use std::str::FromStr; | ||
26 | 25 | ||
27 | #[derive(Debug, Clone)] | 26 | #[derive(Debug, Clone)] |
28 | pub struct Options { | 27 | pub struct Options { |
@@ -286,6 +285,8 @@ impl WorldSnapshot { | |||
286 | 285 | ||
287 | #[cfg(target_os = "windows")] | 286 | #[cfg(target_os = "windows")] |
288 | fn lowercase_drive_letter(url: &Url) -> Url { | 287 | fn lowercase_drive_letter(url: &Url) -> Url { |
288 | use std::str::FromStr; | ||
289 | |||
289 | let s = url.to_string(); | 290 | let s = url.to_string(); |
290 | let drive_partition: Vec<&str> = s.rsplitn(2, ':').collect::<Vec<&str>>(); | 291 | let drive_partition: Vec<&str> = s.rsplitn(2, ':').collect::<Vec<&str>>(); |
291 | 292 | ||