New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small modernization after MSRV bump #482
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small notes, otherwise tACK bf984ff
@@ -75,8 +61,6 @@ pub mod network; | |||
pub mod blockdata; | |||
pub mod util; | |||
pub mod consensus; | |||
// Do not remove: required in order to get hash types implementation macros to work correctly | |||
#[allow(unused_imports)] | |||
pub mod hash_types; | |||
|
|||
pub use hash_types::*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good as a part of this syntax PR to get rid of remaining *
imports like this and specify all types explicitly
75f74fc
bf984ff
to
75f74fc
Compare
Fixed @dr-orlovsky comment, @sgeisler @dpc it dismissed your reviews, sorry about that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error::cause
is also deprecated since since 1.33.0, even before description
- why we still keep it and do not mart with #[allow_deprecated]
?
@@ -75,8 +61,6 @@ pub mod network; | |||
pub mod blockdata; | |||
pub mod util; | |||
pub mod consensus; | |||
// Do not remove: required in order to get hash types implementation macros to work correctly | |||
#[allow(unused_imports)] | |||
pub mod hash_types; | |||
|
|||
pub use hash_types::*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub use hash_types::*; | |
pub use hash_types::{Txid, Wtxid, BlockHash, SigHash, PubkeyHash, WPubkeyHash, ScriptHash, WScriptHash, TxMerkleNode, WitnessMerkleNode, WitnessCommitment, XpubIdentifier, FilterHash}; |
That is definitely weird, I don't see any deprecation warnings |
maybe this could remove also |
Already done that: https://github.com/rust-bitcoin/rust-bitcoin/pull/482/files#diff-b4aea3e418ccdb71239b96952d9cddb6 |
Missed that, much sorry |
It was soft-deprecated (no warnings, just doc) for a long time (since Just using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
75f74fc
to
e46433c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack 75f74fc
e46433c
to
eda47c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack eda47c3
This is akin to rust-bitcoin/rust-secp256k1#232
but also finally really removed the
hex
dependency from the tests (I have no idea how did I miss it in #381 )