Try to find rustfmt in more places
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user