-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use parse::<Txid> instead of encode::deserialize_hex
Currently, in some places, we use the bespoke `encode::deserialize_hex` function to deserialize txid from a hex string. The `Txid` type provides a `FromStr` impl so we can use `parse::<Txid>()`. This makes the code more easily readable because its a common pattern in Rust.
- Loading branch information
1 parent
dada062
commit 6a465b4
Showing
1 changed file
with
9 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters