Skip to content

Commit

Permalink
✅ update CARGO_PKG_NAME with nufmt
Browse files Browse the repository at this point in the history
  • Loading branch information
AucaCoyan committed Dec 28, 2023
1 parent 5972c59 commit ed3d631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ mod tests {
// TODO: create a file instead of reading one in the repo
let mut file = File::create("tests.txt").unwrap();
file.write_all(b"Hello, world!").unwrap();
let mut binding = AssertCommand::cargo_bin(env!("CARGO_PKG_NAME")).unwrap();
let mut binding = AssertCommand::cargo_bin("nufmt").unwrap();
let result = dbg!(binding.arg("-s").arg("-").pipe_stdin("tests.txt").ok());

result.unwrap().assert().success();
Expand Down

0 comments on commit ed3d631

Please sign in to comment.