chore: clippy fix

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-07-31 13:34:23 +02:00
parent df96de1cd0
commit bc3e091f45
11 changed files with 49 additions and 75 deletions

View File

@@ -17,7 +17,7 @@ fn test_config_from_current_dir() {
let ui = &BufferUi::default();
let current_dir = get_test_data_path("cuddle-embed");
Command::new_from_args(Some(ui), args.into_iter())
Command::new_from_args(Some(ui), args)
.execute(Some(&current_dir))
.unwrap();
@@ -33,7 +33,7 @@ fn test_config_from_source_dir() {
args.push("--source");
args.push(current_dir.to_str().unwrap());
Command::new_from_args(Some(ui), args.into_iter())
Command::new_from_args(Some(ui), args)
.execute(None)
.unwrap();
@@ -50,7 +50,7 @@ fn test_config_from_stdin() {
args.push(current_dir.to_str().unwrap());
args.push("--config-stdin");
Command::new_from_args_with_stdin(Some(ui), args.into_iter(), || Ok("please".into()))
Command::new_from_args_with_stdin(Some(ui), args, || Ok("please".into()))
.execute(None)
.unwrap();
@@ -63,7 +63,7 @@ fn test_config_fails_when_not_path_is_set() {
let args = get_base_args();
let ui = &BufferUi::default();
let res = Command::new_from_args(Some(ui), args.into_iter()).execute(None);
let res = Command::new_from_args(Some(ui), args).execute(None);
assert!(res.is_err())
}