Skip to content

Commit 15a9df8

Browse files
committed
fixes assert_cmd deprecation of cargo_bin
1 parent 01d3e54 commit 15a9df8

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

tests/arguments.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ mod util;
22

33
use std::error::Error;
44

5-
use assert_cmd::prelude::*;
65
use predicates::prelude::*;
76

87
#[test]

tests/util/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use std::error::Error;
2-
use std::process::Command;
32

4-
use assert_cmd::prelude::*;
3+
use assert_cmd::Command;
4+
use assert_cmd::cargo::cargo_bin_cmd;
55

66
pub fn bin(args: &[&str]) -> Result<Command, Box<dyn Error>> {
7-
let mut cmd = Command::cargo_bin(env!("CARGO_PKG_NAME"))?;
7+
let mut cmd = cargo_bin_cmd!();
88
cmd.args(args);
99
Ok(cmd)
1010
}

0 commit comments

Comments
 (0)