Skip to content

Commit 8195226

Browse files
committed
fix: replace duplicate use of Command::cargo_bin with cargo_bin macro in tests
1 parent 8c0cd52 commit 8195226

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ mod fixtures;
22

33
use fixtures::*;
44

5+
use assert_cmd::cargo_bin;
56
use assert_cmd::prelude::*;
67
use std::fs::File;
78
use std::io::{Read, Write};
89
use std::process::Command;
9-
use assert_cmd::cargo_bin;
1010
use tempfile::tempdir;
1111

1212
#[test]

tests/test_cli_interactive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ mod tests {}
1010
mod tests {
1111
use super::fixtures::*;
1212

13+
use assert_cmd::cargo_bin;
1314
use rexpect::spawn;
1415
use std::fs::File;
1516
use std::io::{Read, Write};
16-
use assert_cmd::cargo_bin;
1717
use tempfile::tempdir;
1818

1919
// It should behave the same on windows, but interactive testing relies on unix pty internals.

0 commit comments

Comments
 (0)