-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
deprecates Signature::new in favor of Signature::{try_,}from #32481
deprecates Signature::new in favor of Signature::{try_,}from #32481
Conversation
Signature::new lacks type-safety and may panic. The commit deprecates this interface and instead implements Signature::{try_,}from.
Codecov Report
@@ Coverage Diff @@
## master #32481 +/- ##
=======================================
Coverage 82.1% 82.1%
=======================================
Files 778 778
Lines 210199 210192 -7
=======================================
+ Hits 172616 172628 +12
+ Misses 37583 37564 -19 |
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.
great initiative! this has needed to die for quite some time
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.
(cherry picked from commit cfb0288) # Conflicts: # perf/src/sigverify.rs
(cherry picked from commit cfb0288) # Conflicts: # perf/src/sigverify.rs
…backport of #32481) (#32510) * deprecates Signature::new in favor of Signature::{try_,}from (#32481) (cherry picked from commit cfb0288) # Conflicts: # perf/src/sigverify.rs * resolves mergify merge conflicts --------- Co-authored-by: behzad nouri <[email protected]>
Problem
Signature::new
lacks type-safety and may panic.Summary of Changes
The commit deprecates this interface and instead implements
Signature::{try_,}from
.