refactor: avoid unnecessary borrow

Found by clippy in Rust 1.97.1.
This commit is contained in:
Lars Wirzenius
2026-07-22 16:47:04 +03:00
parent 0483de7304
commit cb4cb5c2db
+1 -1
View File
@@ -153,7 +153,7 @@ impl Run {
} }
}; };
let snippet = format!("set -xeuo pipefail\n{}", &runspec.shell); let snippet = format!("set -xeuo pipefail\n{}", runspec.shell);
self.runcmd(&["bash", "-c", &snippet], &src)?; self.runcmd(&["bash", "-c", &snippet], &src)?;
Ok(()) Ok(())