-
Notifications
You must be signed in to change notification settings - Fork 10
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
Don't use slice indexing #164
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #164 +/- ##
==========================================
- Coverage 93.44% 93.16% -0.28%
==========================================
Files 34 34
Lines 6849 7026 +177
==========================================
+ Hits 6400 6546 +146
- Misses 449 480 +31 ☔ View full report in Codecov by Sentry. |
pub type U2048Mod = MontyForm<{ nlimbs!(2048) }>; | ||
pub type U4096Mod = MontyForm<{ nlimbs!(4096) }>; | ||
// TODO(dp): Suggest crypto-bigint update nlimbs! macro. | ||
pub type U512Mod = MontyForm<{ 512u32.div_ceil(Limb::BITS) as usize }>; |
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.
This is not necessary, I pinned Rust version for the clippy CI action, it now runs on 1.81.
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.
We'll soon have to bump to 1.83 yeah? And I run clippy locally and it complains.
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.
I just run it with +1.81
Enable
clippy::indexing_slicing
lint in all non-test code. Also changes some methods to returnResult
.Closes #68