move import inside cfg block
This commit is contained in:
parent
498a7912e9
commit
ebf302d261
@ -22,7 +22,6 @@
|
||||
main_loop::pending_requests::{CompletedRequest, LatestRequests},
|
||||
LspError, Result,
|
||||
};
|
||||
use std::str::FromStr;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Options {
|
||||
@ -286,6 +285,8 @@ pub fn feature_flags(&self) -> &FeatureFlags {
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
fn lowercase_drive_letter(url: &Url) -> Url {
|
||||
use std::str::FromStr;
|
||||
|
||||
let s = url.to_string();
|
||||
let drive_partition: Vec<&str> = s.rsplitn(2, ':').collect::<Vec<&str>>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user