diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-24 18:39:31 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-24 18:39:31 +0000 |
commit | b65ba8f1d62c2961e520885117056e405056959d (patch) | |
tree | 8b4b48b4e24c2b7fcf81ddc196586efd684a3c66 /crates/ra_analysis/src/lib.rs | |
parent | 67e768466ff2e2611eead0f30b2e9c4083c80c20 (diff) | |
parent | 0fb8894fbe3c2ea9f4be34065c3bd1b2a64f6356 (diff) |
Merge #326
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 <[email protected]>
Diffstat (limited to 'crates/ra_analysis/src/lib.rs')
-rw-r--r-- | crates/ra_analysis/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index 830898140..a029f66b4 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs | |||
@@ -29,11 +29,10 @@ use crate::{ | |||
29 | symbol_index::SymbolIndex, | 29 | symbol_index::SymbolIndex, |
30 | }; | 30 | }; |
31 | 31 | ||
32 | pub use crate::{ | 32 | pub use crate::completion::{CompletionItem, CompletionItemKind, InsertText}; |
33 | completion::{CompletionItem, CompletionItemKind, InsertText}, | ||
34 | }; | ||
35 | pub use ra_editor::{ | 33 | pub use ra_editor::{ |
36 | FileSymbol, Fold, FoldKind, HighlightedRange, LineIndex, Runnable, RunnableKind, StructureNode, | 34 | FileSymbol, Fold, FoldKind, HighlightedRange, LineIndex, Runnable, RunnableKind, StructureNode, |
35 | Severity | ||
37 | }; | 36 | }; |
38 | pub use hir::FnSignatureInfo; | 37 | pub use hir::FnSignatureInfo; |
39 | 38 | ||
@@ -198,6 +197,7 @@ pub struct Diagnostic { | |||
198 | pub message: String, | 197 | pub message: String, |
199 | pub range: TextRange, | 198 | pub range: TextRange, |
200 | pub fix: Option<SourceChange>, | 199 | pub fix: Option<SourceChange>, |
200 | pub severity: Severity, | ||
201 | } | 201 | } |
202 | 202 | ||
203 | #[derive(Debug)] | 203 | #[derive(Debug)] |