use inline format args

This commit is contained in:
Daniel Eades 2022-12-30 07:59:11 +00:00
parent 17cc78f169
commit 77051679d7
21 changed files with 61 additions and 109 deletions

View file

@ -408,8 +408,7 @@ impl CargoHandle {
Ok(())
} else {
Err(io::Error::new(io::ErrorKind::Other, format!(
"Cargo watcher failed, the command produced no valid metadata (exit code: {:?}):\n{}",
exit_status, error
"Cargo watcher failed, the command produced no valid metadata (exit code: {exit_status:?}):\n{error}"
)))
}
}