diff options
Diffstat (limited to 'crates/ra_flycheck/src/lib.rs')
-rw-r--r-- | crates/ra_flycheck/src/lib.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/crates/ra_flycheck/src/lib.rs b/crates/ra_flycheck/src/lib.rs index 178485c9e..541179920 100644 --- a/crates/ra_flycheck/src/lib.rs +++ b/crates/ra_flycheck/src/lib.rs | |||
@@ -12,6 +12,11 @@ use std::{ | |||
12 | use cargo_metadata::Message; | 12 | use cargo_metadata::Message; |
13 | use crossbeam_channel::{never, select, unbounded, Receiver, RecvError, Sender}; | 13 | use crossbeam_channel::{never, select, unbounded, Receiver, RecvError, Sender}; |
14 | 14 | ||
15 | pub use cargo_metadata::diagnostic::{ | ||
16 | Applicability, Diagnostic, DiagnosticLevel, DiagnosticSpan, | ||
17 | DiagnosticSpanMacroExpansion, | ||
18 | }; | ||
19 | |||
15 | #[derive(Clone, Debug, PartialEq, Eq)] | 20 | #[derive(Clone, Debug, PartialEq, Eq)] |
16 | pub enum FlycheckConfig { | 21 | pub enum FlycheckConfig { |
17 | CargoCommand { command: String, all_targets: bool, all_features: bool, extra_args: Vec<String> }, | 22 | CargoCommand { command: String, all_targets: bool, all_features: bool, extra_args: Vec<String> }, |
@@ -52,7 +57,7 @@ pub enum CheckTask { | |||
52 | ClearDiagnostics, | 57 | ClearDiagnostics, |
53 | 58 | ||
54 | /// Request adding a diagnostic with fixes included to a file | 59 | /// Request adding a diagnostic with fixes included to a file |
55 | AddDiagnostic { workspace_root: PathBuf, diagnostic: cargo_metadata::diagnostic::Diagnostic }, | 60 | AddDiagnostic { workspace_root: PathBuf, diagnostic: Diagnostic }, |
56 | 61 | ||
57 | /// Request check progress notification to client | 62 | /// Request check progress notification to client |
58 | Status(Status), | 63 | Status(Status), |
@@ -239,12 +244,6 @@ impl FlycheckThread { | |||
239 | } | 244 | } |
240 | } | 245 | } |
241 | 246 | ||
242 | // #[derive(Debug)] | ||
243 | // pub struct DiagnosticWithFixes { | ||
244 | // diagnostic: Diagnostic, | ||
245 | // fixes: Vec<CodeAction>, | ||
246 | // } | ||
247 | |||
248 | enum CheckEvent { | 247 | enum CheckEvent { |
249 | Begin, | 248 | Begin, |
250 | Msg(cargo_metadata::Message), | 249 | Msg(cargo_metadata::Message), |