From 9eb774e2ceeb5992f8b0e24f436face11e6ef14a Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Thu, 25 Mar 2021 15:27:26 -0700 Subject: [PATCH] Fix warnings (#770) --- src/justfile.rs | 3 +-- test-utilities/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/justfile.rs b/src/justfile.rs index 6bcfa9b..47d0cde 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 03649c9..60e6153 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); } }