Generalize Flycheckconfig

This commit is contained in:
Aleksey Kladov
2020-04-01 12:31:42 +02:00
parent aad0e63d74
commit f01846b8ee
2 changed files with 21 additions and 15 deletions

View File

@@ -102,7 +102,7 @@ fn get_config(
max_length: config.inlay_hints_max_length,
},
check: if config.cargo_watch_enable {
Some(FlycheckConfig {
Some(FlycheckConfig::CargoCommand {
command: config.cargo_watch_command.clone(),
all_targets: config.cargo_watch_all_targets,
extra_args: config.cargo_watch_args.clone(),