refactor(identity): call Into::into instead of copying the slice#5788
refactor(identity): call Into::into instead of copying the slice#5788drHuangMHT wants to merge 3 commits intolibp2p:masterfrom
Conversation
dariusc93
left a comment
There was a problem hiding this comment.
LGTM. Left a small minor comment.
Can you update the changelog, and, if applicable, Cargo.toml?
|
I am not sure, but I think the FIXME note was added because we don't want to use If so, then I think that reasoning still applies, because we still indirectly depend on |
Oops I forgot to check the actual dependency tree. But it compiles for some reason. |
I believe we were already able to use |
I think so.
I have no idea because that's not even our direct dependency. |
|
Hi @dariusc93 this PR may be superseded by #5892 |
|
Superseded by #5892 |
Description
Fixes:
rust-libp2p/identity/src/secp256k1.rs
Lines 136 to 138 in 02040ff
Related: #3850
Notes & open questions
Internal change.
Change checklist
I have made corresponding changes to the documentationI have added tests that prove my fix is effective or that my feature worksA changelog entry has been made in the appropriate crates