Pull enabled check up

This commit is contained in:
Aleksey Kladov
2020-04-01 11:01:37 +02:00
parent fae6cecf54
commit dda942debe
3 changed files with 12 additions and 11 deletions

View File

@@ -101,11 +101,14 @@ fn get_config(
chaining_hints: config.inlay_hints_chaining,
max_length: config.inlay_hints_max_length,
},
check: CheckConfig {
enable: config.cargo_watch_enable,
args: config.cargo_watch_args.clone(),
command: config.cargo_watch_command.clone(),
all_targets: config.cargo_watch_all_targets,
check: if config.cargo_watch_enable {
Some(CheckConfig {
args: config.cargo_watch_args.clone(),
command: config.cargo_watch_command.clone(),
all_targets: config.cargo_watch_all_targets,
})
} else {
None
},
rustfmt_args: config.rustfmt_args.clone(),
vscode_lldb: config.vscode_lldb,