Skip to content

Commit

Permalink
Auto merge of #8000 - Jarcho:nightly_fmt, r=llogiq
Browse files Browse the repository at this point in the history
Don't check for a nightly toolchain in fmt test

changelog: None
  • Loading branch information
bors committed Nov 20, 2021
2 parents 38bd251 + 1429949 commit 827fd50
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 827fd50

Please sign in to comment.