Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot committed Nov 14, 2024
1 parent febcf26 commit dbf32f4
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions loco-new/tests/wizard/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,24 @@ fn test_combination(db: DBOption, background: BackgroundOption, asset: AssetsOpt

let mut env_map: HashMap<_, _> = std::env::vars().collect();
env_map.insert("RUSTFLAGS".into(), "-D warnings".into());
assert!(cmd!("cargo", "check", "--quiet")
.full_env(&env_map)
// .stdout_null()
// .stderr_null()
.dir(test_dir.path.as_path())
.run()
.is_ok());
assert!(cmd!(
"cargo",
"clippy",
"--quiet",
"--",
"-W",
"clippy::pedantic",
"-W",
"clippy::nursery",
"-W",
"rust-2018-idioms"
)
.full_env(&env_map)
// .stdout_null()
// .stderr_null()
.dir(test_dir.path.as_path())
.run()
.is_ok());

cmd!("cargo", "test")
// .stdout_null()
Expand Down

0 comments on commit dbf32f4

Please sign in to comment.