@@ -115,7 +115,6 @@ pub mod prelude {
115
115
pub use crate :: cargo_test;
116
116
pub use crate :: paths:: CargoPathExt ;
117
117
pub use crate :: ArgLineCommandExt ;
118
- pub use crate :: CargoCommandExt ;
119
118
pub use crate :: ChannelChangerCommandExt ;
120
119
pub use crate :: TestEnvCommandExt ;
121
120
pub use snapbox:: IntoData ;
@@ -598,11 +597,6 @@ pub fn main_file(println: &str, externed_deps: &[&str]) -> String {
598
597
buf
599
598
}
600
599
601
- /// Path to the cargo binary
602
- pub fn cargo_exe ( ) -> PathBuf {
603
- snapbox:: cmd:: cargo_bin ( "cargo" )
604
- }
605
-
606
600
/// This is the raw output from the process.
607
601
///
608
602
/// This is similar to `std::process::Output`, however the `status` is
@@ -1472,21 +1466,6 @@ impl TestEnvCommandExt for snapbox::cmd::Command {
1472
1466
}
1473
1467
}
1474
1468
1475
- /// Test the cargo command
1476
- pub trait CargoCommandExt {
1477
- fn cargo_ui ( ) -> Self ;
1478
- }
1479
-
1480
- impl CargoCommandExt for snapbox:: cmd:: Command {
1481
- fn cargo_ui ( ) -> Self {
1482
- Self :: new ( cargo_exe ( ) )
1483
- . with_assert ( compare:: assert_ui ( ) )
1484
- . env ( "CARGO_TERM_COLOR" , "always" )
1485
- . env ( "CARGO_TERM_HYPERLINKS" , "true" )
1486
- . test_env ( )
1487
- }
1488
- }
1489
-
1490
1469
/// Add a list of arguments as a line
1491
1470
pub trait ArgLineCommandExt : Sized {
1492
1471
fn arg_line ( mut self , s : & str ) -> Self {
@@ -1524,15 +1503,6 @@ impl ArgLineCommandExt for snapbox::cmd::Command {
1524
1503
}
1525
1504
}
1526
1505
1527
- /// Run `cargo $arg_line`, see [`Execs`]
1528
- pub fn cargo_process ( arg_line : & str ) -> Execs {
1529
- let cargo = cargo_exe ( ) ;
1530
- let mut p = process ( & cargo) ;
1531
- p. env ( "CARGO" , cargo) ;
1532
- p. arg_line ( arg_line) ;
1533
- execs ( ) . with_process_builder ( p)
1534
- }
1535
-
1536
1506
/// Run `git $arg_line`, see [`ProcessBuilder`]
1537
1507
pub fn git_process ( arg_line : & str ) -> ProcessBuilder {
1538
1508
let mut p = process ( "git" ) ;
0 commit comments