Skip to content

Commit 48d4736

Browse files
author
Michael Wright
committed
Simplify fmt test by using the clippy dev alias
1 parent 9102832 commit 48d4736

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/fmt.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@ fn fmt() {
1919
}
2020

2121
let root_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
22-
let dev_dir = root_dir.join("clippy_dev");
23-
let target_dir = root_dir.join("target");
24-
let target_dir = target_dir.to_str().unwrap();
2522
let output = Command::new("cargo")
26-
.current_dir(dev_dir)
27-
.args(&["+nightly", "run", "--target-dir", target_dir, "--", "fmt", "--check"])
23+
.current_dir(root_dir)
24+
.args(&["dev", "fmt", "--check"])
2825
.output()
2926
.unwrap();
3027

0 commit comments

Comments
 (0)