Try to find rustfmt in more places

This commit is contained in:
Aleksey Kladov
2020-06-27 01:28:06 +02:00
parent f5584668db
commit 9617bb4f07
4 changed files with 7 additions and 1 deletions

View File

@@ -650,7 +650,7 @@ pub(crate) fn handle_formatting(
let mut rustfmt = match &snap.config.rustfmt {
RustfmtConfig::Rustfmt { extra_args } => {
let mut cmd = process::Command::new("rustfmt");
let mut cmd = process::Command::new(ra_toolchain::rustfmt());
cmd.args(extra_args);
if let Some(&crate_id) = crate_ids.first() {
// Assume all crates are in the same edition