-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add display trait to descriptor #559
Conversation
293dc7a
to
5015bc1
Compare
Hey thanks for this! The as_string_private() is just another method with a name that's close but nothing else IMO. BUT you got me looking into it just to make sure this is what it was called on the Rust side and in fact in Rust that method is called So really we don't know who did this terrible mistake but I suggest we fix it here and name it |
Love it, will do that right now, thanks for looking at the rust side and the good suggestion |
this should be all set now @thunderbiscuit I made the change |
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 a6826cf.
Description
Adds more to #551 , I was working on BDK iOS and just saw that I was using
Descriptor.asString()
so I wanted to make that nicer by using the display trait onMnemonic
instead now after seeing #551 .This also removes the
asString()
method which is nice.Notes to the reviewers
We still have the
as_string_private()
, I couldnt think of an immediately good way to change that, let me know if you know of one or I'll keep thinking on it to see if something strikes me; but I dont see any reason for that to hold this up even though the pairing of to_string and as_string_private might be a little awkward, we are already walking the path of using this new to_string from the Display trait so we should keep using it on types like this because its really nice.Let me know any thoughts on that though-
Changelog notice
Checklists
All Submissions:
cargo fmt
andcargo clippy
before committingNew Features:
Bugfixes: