mirror of
https://github.com/casey/just.git
synced 2024-11-23 20:15:05 +03:00
Fix warnings (#770)
This commit is contained in:
parent
21f5e75395
commit
9eb774e2ce
@ -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());
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user