diff options
author | Omer Ben-Amram <[email protected]> | 2019-12-15 15:03:39 +0000 |
---|---|---|
committer | Omer Ben-Amram <[email protected]> | 2019-12-15 15:03:39 +0000 |
commit | ebf302d2610527c35b8fb794a03cc1c280c8a9d3 (patch) | |
tree | 1d4a58b03ce5aad292dd61ec1c7591aaf2c89fa2 /crates/ra_lsp_server/src | |
parent | 498a7912e923ad8ce349f6874568373f430e9602 (diff) |
move import inside cfg block
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 | ||