Don't check for a nightly toolchain in fmt test

This commit is contained in:
Jason Newcomb 2021-11-19 19:43:31 -05:00
parent 38bd2514ad
commit 1429949f9f

View File

@ -11,10 +11,7 @@ fn fmt() {
}
// Skip this test if nightly rustfmt is unavailable
let rustup_output = Command::new("rustup")
.args(&["component", "list", "--toolchain", "nightly"])
.output()
.unwrap();
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") {