aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/main_loop.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-01 11:31:42 +0100
committerAleksey Kladov <[email protected]>2020-04-01 12:14:38 +0100
commitf01846b8eec9c8084153cb3cd6aff6e15608a01f (patch)
treed05fc384ead1fa3c56af11d425d104087eb2e049 /crates/rust-analyzer/src/main_loop.rs
parentaad0e63d744e5220fae38f61e1adf7654fb618bd (diff)
Generalize Flycheckconfig
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r--crates/rust-analyzer/src/main_loop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index 06122ed95..a89ea86ea 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -102,7 +102,7 @@ fn get_config(
102 max_length: config.inlay_hints_max_length, 102 max_length: config.inlay_hints_max_length,
103 }, 103 },
104 check: if config.cargo_watch_enable { 104 check: if config.cargo_watch_enable {
105 Some(FlycheckConfig { 105 Some(FlycheckConfig::CargoCommand {
106 command: config.cargo_watch_command.clone(), 106 command: config.cargo_watch_command.clone(),
107 all_targets: config.cargo_watch_all_targets, 107 all_targets: config.cargo_watch_all_targets,
108 extra_args: config.cargo_watch_args.clone(), 108 extra_args: config.cargo_watch_args.clone(),