Skip to content

Commit

Permalink
Fix some issues found by linting with nightly rust
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Nov 5, 2024
1 parent ed5b961 commit 1d45d14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion precious-core/src/precious.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ impl LintOrTidyRunner {
Some(files) => {
let mut all_failures: Vec<ActionFailure> = vec![];
for c in commands {
debug!(r#"Command config for {}: {}"#, c.name, c.config_debug());
debug!(r"Command config for {}: {}", c.name, c.config_debug());
if let Some(mut failures) = run_command(self, &files, &c)? {
all_failures.append(&mut failures);
}
Expand Down
2 changes: 1 addition & 1 deletion precious-helpers/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub fn run(
}

let output = output_from_command(c, ok_exit_codes, exe, args)
.with_context(|| format!(r#"Failed to execute command `{}`"#, exec_string(exe, args)))?;
.with_context(|| format!(r"Failed to execute command `{}`", exec_string(exe, args)))?;

if log_enabled!(Debug) && !output.stdout.is_empty() {
debug!("Stdout was:\n{}", String::from_utf8(output.stdout.clone())?);
Expand Down

0 comments on commit 1d45d14

Please sign in to comment.