We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Error::cause()
Error::source()
1 parent cabb8f9 commit df081beCopy full SHA for df081be
src/lib.rs
@@ -377,8 +377,7 @@ impl fmt::Display for Error {
377
#[cfg(feature = "std")]
378
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
379
impl std::error::Error for Error {
380
- #[allow(deprecated)]
381
- fn cause(&self) -> Option<&dyn std::error::Error> {
+ fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
382
match self {
383
Error::IncorrectSignature => None,
384
Error::InvalidMessage => None,
0 commit comments