fmt, test fix

This commit is contained in:
Anton-4 2023-12-27 16:16:09 +01:00
parent 3210e87815
commit 861e50a5f4
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
2 changed files with 9 additions and 4 deletions

View file

@ -255,7 +255,12 @@ pub fn run_cmd<'a, I: IntoIterator<Item = &'a str>, E: IntoIterator<Item = (&'a
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()
.unwrap_or_else(|err| panic!("Encountered error:\n\t{:?}\nWhile executing cmd:\n\t{:?}", err, cmd_str));
.unwrap_or_else(|err| {
panic!(
"Encountered error:\n\t{:?}\nWhile executing cmd:\n\t{:?}",
err, cmd_str
)
});
{
let stdin = child.stdin.as_mut().expect("Failed to open stdin");