aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_flycheck
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_flycheck')
-rw-r--r--crates/ra_flycheck/src/lib.rs13
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::{
12use cargo_metadata::Message; 12use cargo_metadata::Message;
13use crossbeam_channel::{never, select, unbounded, Receiver, RecvError, Sender}; 13use crossbeam_channel::{never, select, unbounded, Receiver, RecvError, Sender};
14 14
15pub 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)]
16pub enum FlycheckConfig { 21pub 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
248enum CheckEvent { 247enum CheckEvent {
249 Begin, 248 Begin,
250 Msg(cargo_metadata::Message), 249 Msg(cargo_metadata::Message),