Remove useless conditional compilation

This commit is contained in:
Urgau 2022-06-08 18:15:22 +02:00 committed by Caleb Cartwright
parent 75786fb0b7
commit 5fa2727dde

View File

@ -978,12 +978,6 @@ fn rustfmt() -> PathBuf {
// Chop off `deps`.
me.pop();
// If we run `cargo test --release`, we might only have a release build.
if cfg!(release) {
// `../release/`
me.pop();
me.push("release");
}
me.push("rustfmt");
assert!(
me.is_file() || me.with_extension("exe").is_file(),