mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
move import inside cfg block
This commit is contained in:
parent
498a7912e9
commit
ebf302d261
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,6 @@ use crate::{
|
||||||
main_loop::pending_requests::{CompletedRequest, LatestRequests},
|
main_loop::pending_requests::{CompletedRequest, LatestRequests},
|
||||||
LspError, Result,
|
LspError, Result,
|
||||||
};
|
};
|
||||||
use std::str::FromStr;
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Options {
|
pub struct Options {
|
||||||
|
@ -286,6 +285,8 @@ impl WorldSnapshot {
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
fn lowercase_drive_letter(url: &Url) -> Url {
|
fn lowercase_drive_letter(url: &Url) -> Url {
|
||||||
|
use std::str::FromStr;
|
||||||
|
|
||||||
let s = url.to_string();
|
let s = url.to_string();
|
||||||
let drive_partition: Vec<&str> = s.rsplitn(2, ':').collect::<Vec<&str>>();
|
let drive_partition: Vec<&str> = s.rsplitn(2, ':').collect::<Vec<&str>>();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue