Remove rustfmt component check

This was more valuable when we used the latest nightly without
specifying the toolchain version.
This commit is contained in:
Cameron Steffen 2022-01-10 14:05:38 -06:00
parent 4a54933845
commit 21343ab2a5

View file

@ -10,14 +10,6 @@ fn fmt() {
return;
}
// Skip this test if nightly rustfmt is unavailable
let rustup_output = Command::new("rustup").args(&["component", "list"]).output().unwrap();
assert!(rustup_output.status.success());
let component_output = String::from_utf8_lossy(&rustup_output.stdout);
if !component_output.contains("rustfmt") {
return;
}
let root_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
let output = Command::new("cargo")
.current_dir(root_dir)