From 21343ab2a5c89dd881cd34986eb85487513f47d1 Mon Sep 17 00:00:00 2001 From: Cameron Steffen Date: Mon, 10 Jan 2022 14:05:38 -0600 Subject: [PATCH] Remove rustfmt component check This was more valuable when we used the latest nightly without specifying the toolchain version. --- tests/fmt.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/fmt.rs b/tests/fmt.rs index 383702dd439cf..0defd45b68b06 100644 --- a/tests/fmt.rs +++ b/tests/fmt.rs @@ -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)