Skip to content

Commit

Permalink
Remove useless conditional compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau authored and calebcartwright committed Jun 10, 2022
1 parent 75786fb commit 5fa2727
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 5fa2727

Please sign in to comment.