Fix warnings (#770)

This commit is contained in:
Casey Rodarmor 2021-03-25 15:27:26 -07:00 committed by GitHub
parent 21f5e75395
commit 9eb774e2ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -253,8 +253,7 @@ impl<'src> Justfile<'src> {
recipe.run(context, dotenv, scope, search)?; recipe.run(context, dotenv, scope, search)?;
let mut invocation = Vec::new(); let mut invocation = vec![recipe.name().to_owned()];
invocation.push(recipe.name().to_owned());
for argument in arguments.iter().cloned() { for argument in arguments.iter().cloned() {
invocation.push(argument.to_owned()); invocation.push(argument.to_owned());
} }

View File

@ -11,7 +11,7 @@ pub fn assert_success(output: &Output) {
if !output.status.success() { if !output.status.success() {
eprintln!("stderr: {}", String::from_utf8_lossy(&output.stderr)); eprintln!("stderr: {}", String::from_utf8_lossy(&output.stderr));
eprintln!("stdout: {}", String::from_utf8_lossy(&output.stdout)); eprintln!("stdout: {}", String::from_utf8_lossy(&output.stdout));
panic!(output.status); panic!("{}", output.status);
} }
} }