remove imports that are also in edition 2021's prelude

This commit is contained in:
KaDiWa 2022-08-09 01:16:32 +02:00
parent 554f7f889e
commit 232176b46a
No known key found for this signature in database
GPG key ID: 0B52AE391C674CE5
18 changed files with 15 additions and 27 deletions

View file

@ -512,7 +512,7 @@ fn clippy_code_description(code: Option<&str>) -> Option<lsp_types::CodeDescript
#[cfg(test)]
#[cfg(not(windows))]
mod tests {
use std::{convert::TryInto, path::Path};
use std::path::Path;
use crate::{config::Config, global_state::GlobalState};

View file

@ -1386,7 +1386,7 @@ fn main() {
#[test]
#[cfg(target_os = "windows")]
fn test_lowercase_drive_letter() {
use std::{convert::TryInto, path::Path};
use std::path::Path;
let url = url_from_abs_path(Path::new("C:\\Test").try_into().unwrap());
assert_eq!(url.to_string(), "file:///c:/Test");