From 1a90b7716593ea1aaab5bda143b73b2228499aff Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 13 Sep 2022 11:53:57 -0700 Subject: [PATCH] Pull in Provider impl from anyhow 1.0.65 --- Cargo.toml | 2 +- tests/test_backtrace.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9ebb732..66dee63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ rust-version = "1.31" thiserror-impl = { version = "=1.0.34", path = "impl" } [dev-dependencies] -anyhow = "1.0.64" +anyhow = "1.0.65" ref-cast = "1.0" rustversion = "1.0" trybuild = { version = "1.0.49", features = ["diff"] } diff --git a/tests/test_backtrace.rs b/tests/test_backtrace.rs index 6103df9..43f68b8 100644 --- a/tests/test_backtrace.rs +++ b/tests/test_backtrace.rs @@ -140,8 +140,7 @@ pub mod structs { let error = AnyhowBacktrace { source: anyhow::Error::msg("..."), }; - // FIXME: change back to is_some after `impl Provider for anyhow::Error` exists. - assert!(any::request_ref::(&error).is_none()); + assert!(any::request_ref::(&error).is_some()); let error = BoxDynErrorBacktrace { source: Box::new(PlainBacktrace {