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)?;
let mut invocation = Vec::new();
invocation.push(recipe.name().to_owned());
let mut invocation = vec![recipe.name().to_owned()];
for argument in arguments.iter().cloned() {
invocation.push(argument.to_owned());
}

View file

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