aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_flycheck
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-01 17:56:47 +0100
committerAleksey Kladov <[email protected]>2020-04-01 17:56:47 +0100
commit1ac345a9f693e54aecd2ad70731acc75f982d2ae (patch)
treea89ab4ea4332354c08e57d7ccece1743d2b9d1a3 /crates/ra_flycheck
parent4936abdd49b1d0ba6b2a858bee3a5a665de9d6f3 (diff)
Centralize defaults
Diffstat (limited to 'crates/ra_flycheck')
-rw-r--r--crates/ra_flycheck/src/lib.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/crates/ra_flycheck/src/lib.rs b/crates/ra_flycheck/src/lib.rs
index f3d6f8f5f..b54a30ab8 100644
--- a/crates/ra_flycheck/src/lib.rs
+++ b/crates/ra_flycheck/src/lib.rs
@@ -28,16 +28,6 @@ pub enum FlycheckConfig {
28 CustomCommand { command: String, args: Vec<String> }, 28 CustomCommand { command: String, args: Vec<String> },
29} 29}
30 30
31impl Default for FlycheckConfig {
32 fn default() -> Self {
33 FlycheckConfig::CargoCommand {
34 command: "check".to_string(),
35 all_targets: true,
36 extra_args: Vec::new(),
37 }
38 }
39}
40
41/// Flycheck wraps the shared state and communication machinery used for 31/// Flycheck wraps the shared state and communication machinery used for
42/// running `cargo check` (or other compatible command) and providing 32/// running `cargo check` (or other compatible command) and providing
43/// diagnostics based on the output. 33/// diagnostics based on the output.