File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
crates/cargo-test-support Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ edition = "2018"
9
9
doctest = false
10
10
11
11
[dependencies ]
12
+ anyhow = " 1.0.34"
12
13
cargo = { path = " ../.." }
13
14
cargo-test-macro = { path = " ../cargo-test-macro" }
14
15
cargo-util = { path = " ../cargo-util" }
Original file line number Diff line number Diff line change 10
10
//! These tests are all disabled on rust-lang/rust's CI, but run in Cargo's CI.
11
11
12
12
use crate :: { basic_manifest, main_file, project} ;
13
- use cargo:: CargoResult ;
14
13
use cargo_util:: ProcessError ;
15
14
use std:: env;
16
15
use std:: fmt:: Write ;
@@ -41,7 +40,7 @@ pub fn disabled() -> bool {
41
40
42
41
let cross_target = alternate ( ) ;
43
42
44
- let run_cross_test = || -> CargoResult < Output > {
43
+ let run_cross_test = || -> anyhow :: Result < Output > {
45
44
let p = project ( )
46
45
. at ( "cross_test" )
47
46
. file ( "Cargo.toml" , & basic_manifest ( "cross_test" , "1.0.0" ) )
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ use std::process::{Command, Output};
15
15
use std:: str;
16
16
use std:: time:: { self , Duration } ;
17
17
18
- use cargo:: util:: CargoResult ;
19
18
use cargo_util:: { is_ci, ProcessBuilder , ProcessError } ;
20
19
use serde_json:: { self , Value } ;
21
20
use url:: Url ;
@@ -702,7 +701,7 @@ impl Execs {
702
701
self
703
702
}
704
703
705
- pub fn exec_with_output ( & mut self ) -> CargoResult < Output > {
704
+ pub fn exec_with_output ( & mut self ) -> anyhow :: Result < Output > {
706
705
self . ran = true ;
707
706
// TODO avoid unwrap
708
707
let p = ( & self . process_builder ) . clone ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments