Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

fix deprecations in the std::error::Error trait impl#360

Open
antonilol wants to merge 1 commit into
rust-bitcoin:masterfrom
antonilol:fix-deprecation
Open

fix deprecations in the std::error::Error trait impl#360
antonilol wants to merge 1 commit into
rust-bitcoin:masterfrom
antonilol:fix-deprecation

Conversation

@antonilol

Copy link
Copy Markdown
Contributor

cause is deprecated in favor of source, calls to cause are redirected there
description is also deprecated because it is generally uninformative (the return value lifetime is very restrictive), this is replaced by the Display trait (already implemented)

@apoelstra apoelstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK bc71734 these changes are fine, but note that this crate is in a larger state of disrepair -- see rust-bitcoin/rust-bitcoin#2777 -- though it would be good to clean up clippy and rustc warnings at least

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants