Skip to content

Commit 0ad3fb1

Browse files
committed
Remove CargoResult from cargo-test-support.
1 parent 1022493 commit 0ad3fb1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

crates/cargo-test-support/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ edition = "2018"
99
doctest = false
1010

1111
[dependencies]
12+
anyhow = "1.0.34"
1213
cargo = { path = "../.." }
1314
cargo-test-macro = { path = "../cargo-test-macro" }
1415
cargo-util = { path = "../cargo-util" }

crates/cargo-test-support/src/cross_compile.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//! These tests are all disabled on rust-lang/rust's CI, but run in Cargo's CI.
1111
1212
use crate::{basic_manifest, main_file, project};
13-
use cargo::CargoResult;
1413
use cargo_util::ProcessError;
1514
use std::env;
1615
use std::fmt::Write;
@@ -41,7 +40,7 @@ pub fn disabled() -> bool {
4140

4241
let cross_target = alternate();
4342

44-
let run_cross_test = || -> CargoResult<Output> {
43+
let run_cross_test = || -> anyhow::Result<Output> {
4544
let p = project()
4645
.at("cross_test")
4746
.file("Cargo.toml", &basic_manifest("cross_test", "1.0.0"))

crates/cargo-test-support/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use std::process::{Command, Output};
1515
use std::str;
1616
use std::time::{self, Duration};
1717

18-
use cargo::util::CargoResult;
1918
use cargo_util::{is_ci, ProcessBuilder, ProcessError};
2019
use serde_json::{self, Value};
2120
use url::Url;
@@ -702,7 +701,7 @@ impl Execs {
702701
self
703702
}
704703

705-
pub fn exec_with_output(&mut self) -> CargoResult<Output> {
704+
pub fn exec_with_output(&mut self) -> anyhow::Result<Output> {
706705
self.ran = true;
707706
// TODO avoid unwrap
708707
let p = (&self.process_builder).clone().unwrap();

0 commit comments

Comments
 (0)