From 78e0ffed90fd1ced136cf527f4caf00c89d89e7f Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 15 Aug 2023 00:00:07 -0700 Subject: [PATCH] Pull in anyhow's new Error::provide support --- Cargo.toml | 2 +- tests/test_backtrace.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d36f99e..56fffbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ rust-version = "1.56" thiserror-impl = { version = "=1.0.45", path = "impl" } [dev-dependencies] -anyhow = "1.0.71" +anyhow = "1.0.73" ref-cast = "1.0.18" rustversion = "1.0.13" trybuild = { version = "1.0.81", features = ["diff"] } diff --git a/tests/test_backtrace.rs b/tests/test_backtrace.rs index 5a26104..4710d45 100644 --- a/tests/test_backtrace.rs +++ b/tests/test_backtrace.rs @@ -136,7 +136,7 @@ pub mod structs { let error = AnyhowBacktrace { source: anyhow::Error::msg("..."), }; - assert!(error::request_ref::(&error).is_some() || true); // FIXME + assert!(error::request_ref::(&error).is_some()); let error = BoxDynErrorBacktrace { source: Box::new(PlainBacktrace {