-
Notifications
You must be signed in to change notification settings - Fork 25
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
removing one more iter_mut in the denominators #977
Conversation
} | ||
*d = d.invert(); | ||
Self { | ||
denominator: (0..u128::from(N::U64)) |
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.
shouldn't N::U128
work out of the box w/o extra casts here? https://docs.rs/typenum/latest/typenum/marker_traits/trait.Unsigned.html#associatedconstant.U128
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.
You are right. @martinthomson helped me figure out we could get this by bumping the version of typenum
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #977 +/- ##
==========================================
- Coverage 89.34% 89.27% -0.07%
==========================================
Files 161 161
Lines 21887 21900 +13
==========================================
- Hits 19555 19552 -3
- Misses 2332 2348 +16 ☔ View full report in Codecov by Sentry. |
@@ -149,7 +149,7 @@ tower = { version = "0.4.13", optional = true } | |||
tower-http = { version = "0.4.0", optional = true, features = ["trace"] } | |||
tracing = "0.1" | |||
tracing-subscriber = { version = "0.3", features = ["env-filter"] } | |||
typenum = "1.16" | |||
typenum = { version = "1.17", features = ["i128"] } |
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.
Required to unlock the N::U128
constants
Really minor change to remove one more iter_mut