Skip to content

Commit 21343ab

Browse files
committed
Remove rustfmt component check
This was more valuable when we used the latest nightly without specifying the toolchain version.
1 parent 4a54933 commit 21343ab

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/fmt.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ fn fmt() {
1010
return;
1111
}
1212

13-
// Skip this test if nightly rustfmt is unavailable
14-
let rustup_output = Command::new("rustup").args(&["component", "list"]).output().unwrap();
15-
assert!(rustup_output.status.success());
16-
let component_output = String::from_utf8_lossy(&rustup_output.stdout);
17-
if !component_output.contains("rustfmt") {
18-
return;
19-
}
20-
2113
let root_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
2214
let output = Command::new("cargo")
2315
.current_dir(root_dir)

0 commit comments

Comments
 (0)