Skip to content

Commit

Permalink
Pull in Provider impl from anyhow 1.0.65
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 13, 2022
1 parent 2ca76ed commit 1a90b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
3 changes: 1 addition & 2 deletions tests/test_backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Backtrace>(&error).is_none());
assert!(any::request_ref::<Backtrace>(&error).is_some());

let error = BoxDynErrorBacktrace {
source: Box::new(PlainBacktrace {
Expand Down

0 comments on commit 1a90b77

Please sign in to comment.