Skip to content

Commit

Permalink
Remove rustfmt component check
Browse files Browse the repository at this point in the history
This was more valuable when we used the latest nightly without
specifying the toolchain version.
  • Loading branch information
camsteffen committed Jan 10, 2022
1 parent 4a54933 commit 21343ab
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/fmt.rs
Expand Up @@ -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)
Expand Down

0 comments on commit 21343ab

Please sign in to comment.