326: resolved #324: remove unnecessary braces in use statement. r=matklad a=gfreezy

Add inspection for unnecessary braces in use statement

Co-authored-by: gfreezy <gfreezy@gmail.com>
This commit is contained in:
bors[bot] 2018-12-24 18:39:31 +00:00
commit b65ba8f1d6
7 changed files with 79 additions and 12 deletions

View file

@ -29,11 +29,10 @@ use crate::{
symbol_index::SymbolIndex,
};
pub use crate::{
completion::{CompletionItem, CompletionItemKind, InsertText},
};
pub use crate::completion::{CompletionItem, CompletionItemKind, InsertText};
pub use ra_editor::{
FileSymbol, Fold, FoldKind, HighlightedRange, LineIndex, Runnable, RunnableKind, StructureNode,
Severity
};
pub use hir::FnSignatureInfo;
@ -198,6 +197,7 @@ pub struct Diagnostic {
pub message: String,
pub range: TextRange,
pub fix: Option<SourceChange>,
pub severity: Severity,
}
#[derive(Debug)]