Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 653f3ae

Browse files
committed
use the rustfmt function to find the bin
makes it possible to execute the test after a release build
1 parent 836562b commit 653f3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ fn stdin_disable_all_formatting_test() {
293293
_ => return, // these tests require nightly
294294
}
295295
let input = String::from("fn main() { println!(\"This should not be formatted.\"); }");
296-
let mut child = Command::new("./target/debug/rustfmt")
296+
let mut child = Command::new(rustfmt().to_str().unwrap())
297297
.stdin(Stdio::piped())
298298
.stdout(Stdio::piped())
299299
.arg("--config-path=./tests/config/disable_all_formatting.toml")

0 commit comments

Comments
 (0)