mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
use pythonic import order
use std // blank line use extern crates // blank line use crate::{}
This commit is contained in:
parent
8eea10e3ab
commit
6e88aaef5d
7 changed files with 20 additions and 17 deletions
|
@ -1,4 +1,5 @@
|
|||
use crate::{imp::FileResolverImp, FileId};
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
use ra_syntax::{
|
||||
ast::{self, AstNode, NameOwner},
|
||||
text_utils::is_subrange,
|
||||
|
@ -6,7 +7,7 @@ use ra_syntax::{
|
|||
};
|
||||
use relative_path::RelativePathBuf;
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
use crate::{imp::FileResolverImp, FileId};
|
||||
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
pub struct ModuleDescriptor {
|
||||
|
|
|
@ -23,11 +23,12 @@ mod symbol_index;
|
|||
|
||||
use std::{fmt::Debug, sync::Arc};
|
||||
|
||||
use crate::imp::{AnalysisHostImpl, AnalysisImpl, FileResolverImp};
|
||||
use ra_syntax::{AtomEdit, File, TextRange, TextUnit};
|
||||
use relative_path::{RelativePath, RelativePathBuf};
|
||||
use rustc_hash::FxHashMap;
|
||||
|
||||
use crate::imp::{AnalysisHostImpl, AnalysisImpl, FileResolverImp};
|
||||
|
||||
pub use crate::{
|
||||
descriptors::FnDescriptor,
|
||||
job::{JobHandle, JobToken},
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
use crate::{FileId, Query};
|
||||
use std::{
|
||||
hash::{Hash, Hasher},
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
use fst::{self, Streamer};
|
||||
use ra_editor::{file_symbols, FileSymbol};
|
||||
use ra_syntax::{
|
||||
|
@ -7,10 +11,7 @@ use ra_syntax::{
|
|||
};
|
||||
use rayon::prelude::*;
|
||||
|
||||
use std::{
|
||||
hash::{Hash, Hasher},
|
||||
sync::Arc,
|
||||
};
|
||||
use crate::{FileId, Query};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct SymbolIndex {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue