mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
minor: Lift out FxIndex{Map/Set} types into ide_db
This commit is contained in:
parent
d2513deb62
commit
92f7db447c
10 changed files with 13 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
use std::{hash::BuildHasherDefault, iter};
|
||||
use std::iter;
|
||||
|
||||
use ast::make;
|
||||
use either::Either;
|
||||
|
@ -12,10 +12,9 @@ use ide_db::{
|
|||
FamousDefs,
|
||||
},
|
||||
search::{FileReference, ReferenceCategory, SearchScope},
|
||||
RootDatabase,
|
||||
FxIndexSet, RootDatabase,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use rustc_hash::FxHasher;
|
||||
use stdx::format_to;
|
||||
use syntax::{
|
||||
ast::{
|
||||
|
@ -33,8 +32,6 @@ use crate::{
|
|||
AssistId,
|
||||
};
|
||||
|
||||
type FxIndexSet<T> = indexmap::IndexSet<T, BuildHasherDefault<FxHasher>>;
|
||||
|
||||
// Assist: extract_function
|
||||
//
|
||||
// Extracts selected statements into new function.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue