From da74c66947ec847f2ca8e99d96cc7e36fd494c75 Mon Sep 17 00:00:00 2001 From: Lukas Tobias Wirth Date: Sun, 23 May 2021 19:33:28 +0200 Subject: Correctly resolve crate name in use paths when import shadows itself --- crates/ide_assists/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/ide_assists') diff --git a/crates/ide_assists/src/lib.rs b/crates/ide_assists/src/lib.rs index 05644b6ff..4cd82f8c1 100644 --- a/crates/ide_assists/src/lib.rs +++ b/crates/ide_assists/src/lib.rs @@ -20,8 +20,7 @@ pub mod path_transform; use std::str::FromStr; use hir::Semantics; -use ide_db::base_db::FileRange; -use ide_db::{label::Label, source_change::SourceChange, RootDatabase}; +use ide_db::{base_db::FileRange, label::Label, source_change::SourceChange, RootDatabase}; use syntax::TextRange; pub(crate) use crate::assist_context::{AssistContext, Assists}; -- cgit v1.2.3