cargo: preserve build failures in result wrapper
ci / check (push) Failing after 6m15s

This commit is contained in:
agent-pool-12
2026-10-17 15:52:37 +00:00
parent 22590c608d
commit 6a9d35ceb8
+6
View File
@@ -72,6 +72,12 @@ impl std::fmt::Display for BuildFailure {
impl std::error::Error for BuildFailure {} impl std::error::Error for BuildFailure {}
impl From<anyhow::Error> for BuildFailure {
fn from(error: anyhow::Error) -> Self {
Self { reason: format!("{error:#}"), tests: TestResults::default() }
}
}
/// All builds share one target folder, so they run one at a time. /// All builds share one target folder, so they run one at a time.
pub struct Cargo { pub struct Cargo {
world: World, world: World,