diff --git a/src/justfile.rs b/src/justfile.rs index 6bcfa9b5..47d0cde6 100644 --- a/src/justfile.rs +++ b/src/justfile.rs @@ -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()); } diff --git a/test-utilities/src/lib.rs b/test-utilities/src/lib.rs index 03649c9f..60e6153f 100644 --- a/test-utilities/src/lib.rs +++ b/test-utilities/src/lib.rs @@ -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); } }