Skip to content

Commit 85fdf8e

Browse files
Urgaucalebcartwright
authored andcommitted
Remove useless conditional compilation - 2
1 parent dde2831 commit 85fdf8e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: src/test/mod.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -982,11 +982,7 @@ fn rustfmt() -> PathBuf {
982982
assert!(
983983
me.is_file() || me.with_extension("exe").is_file(),
984984
"{}",
985-
if cfg!(release) {
986-
"no rustfmt bin, try running `cargo build --release` before testing"
987-
} else {
988-
"no rustfmt bin, try running `cargo build` before testing"
989-
}
985+
"no rustfmt bin, try running `cargo build` or `cargo build --release` before testing"
990986
);
991987
me
992988
}

0 commit comments

Comments
 (0)