minor: Lift out FxIndex{Map/Set} types into ide_db

This commit is contained in:
Lukas Wirth 2021-11-16 12:15:47 +01:00
parent d2513deb62
commit 92f7db447c
10 changed files with 13 additions and 16 deletions

View file

@ -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.