allow rustfmt to reorder imports
This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
use std::fmt::{self, Display};
|
||||
|
||||
use hir::{Docs, Documentation, HasSource};
|
||||
use join_to_string::join;
|
||||
use ra_syntax::ast::{self, AstNode, NameOwner, VisibilityOwner};
|
||||
use std::convert::From;
|
||||
use hir::{Docs, Documentation, HasSource};
|
||||
|
||||
use crate::{db, display::{where_predicates, generic_parameters}};
|
||||
use crate::{
|
||||
db,
|
||||
display::{generic_parameters, where_predicates},
|
||||
};
|
||||
|
||||
/// Contains information about a function signature
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
use hir::{FieldSource, HasSource, ImplItem, ModuleSource};
|
||||
use ra_db::{FileId, SourceDatabase};
|
||||
use ra_syntax::{
|
||||
SyntaxNode, AstNode, SmolStr, TextRange, AstPtr, TreeArc,
|
||||
SyntaxKind::{self, NAME},
|
||||
ast::{self, DocCommentsOwner},
|
||||
algo::visit::{visitor, Visitor},
|
||||
ast::{self, DocCommentsOwner},
|
||||
AstNode, AstPtr, SmolStr,
|
||||
SyntaxKind::{self, NAME},
|
||||
SyntaxNode, TextRange, TreeArc,
|
||||
};
|
||||
use hir::{ModuleSource, FieldSource, ImplItem, HasSource};
|
||||
|
||||
use crate::{FileSymbol, db::RootDatabase};
|
||||
use super::short_label::ShortLabel;
|
||||
use crate::{db::RootDatabase, FileSymbol};
|
||||
|
||||
/// `NavigationTarget` represents and element in the editor's UI which you can
|
||||
/// click on to navigate to a particular piece of code.
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
use ra_syntax::{
|
||||
ast::{self, NameOwner, VisibilityOwner, TypeAscriptionOwner, AstNode},
|
||||
};
|
||||
use ra_syntax::ast::{self, AstNode, NameOwner, TypeAscriptionOwner, VisibilityOwner};
|
||||
|
||||
pub(crate) trait ShortLabel {
|
||||
fn short_label(&self) -> Option<String>;
|
||||
|
||||
@@ -2,7 +2,7 @@ use crate::TextRange;
|
||||
|
||||
use ra_syntax::{
|
||||
algo::visit::{visitor, Visitor},
|
||||
ast::{self, AttrsOwner, NameOwner, TypeParamsOwner, TypeAscriptionOwner},
|
||||
ast::{self, AttrsOwner, NameOwner, TypeAscriptionOwner, TypeParamsOwner},
|
||||
AstNode, SourceFile, SyntaxKind, SyntaxNode, WalkEvent,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user