Skip to content

Commit 8395396

Browse files
author
Jonas Schievink
committed
Reorder imports
1 parent 5f23f8c commit 8395396

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

crates/ra_hir_def/src/find_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
use hir_expand::name::{known, AsName, Name};
44
use ra_prof::profile;
5+
use rustc_hash::FxHashSet;
56
use test_utils::mark;
67

78
use crate::{
@@ -11,7 +12,6 @@ use crate::{
1112
visibility::Visibility,
1213
ModuleDefId, ModuleId,
1314
};
14-
use rustc_hash::FxHashSet;
1515

1616
// FIXME: handle local items
1717

crates/ra_hir_def/src/import_map.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
//! A map of all publicly exported items in a crate.
22
3+
use std::{collections::hash_map::Entry, sync::Arc};
4+
5+
use ra_db::CrateId;
6+
use rustc_hash::FxHashMap;
7+
38
use crate::{
49
db::DefDatabase,
510
item_scope::ItemInNs,
611
path::{ModPath, PathKind},
712
visibility::Visibility,
813
ModuleDefId, ModuleId,
914
};
10-
use ra_db::CrateId;
11-
use rustc_hash::FxHashMap;
12-
use std::{collections::hash_map::Entry, sync::Arc};
1315

1416
/// A map from publicly exported items to the path needed to import/name them from a downstream
1517
/// crate.

crates/ra_hir_def/src/item_scope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
44
use hir_expand::name::Name;
55
use once_cell::sync::Lazy;
6+
use ra_db::CrateId;
67
use rustc_hash::FxHashMap;
78

89
use crate::{
910
db::DefDatabase, per_ns::PerNs, visibility::Visibility, AdtId, BuiltinType, HasModule, ImplId,
1011
Lookup, MacroDefId, ModuleDefId, TraitId,
1112
};
12-
use ra_db::CrateId;
1313

1414
#[derive(Debug, Default, PartialEq, Eq)]
1515
pub struct ItemScope {

0 commit comments

Comments
 (0)