mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
remove imports that are also in edition 2021's prelude
This commit is contained in:
parent
554f7f889e
commit
232176b46a
18 changed files with 15 additions and 27 deletions
|
@ -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};
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue