-
Notifications
You must be signed in to change notification settings - Fork 9
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
style: fix lints from Rust 1.79 release #486
Conversation
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.
One small question, but LGTM
// Safety: the value is a u64, but pprof only has signed values, so we | ||
// transmute it; the backend does the same. | ||
unsafe { std::intrinsics::transmute(id) } | ||
unsafe { std::intrinsics::transmute::<i64, u64>(*num) } |
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.
💯
a306f3a
to
ed3927c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #486 +/- ##
==========================================
+ Coverage 69.64% 69.67% +0.03%
==========================================
Files 199 199
Lines 26634 26606 -28
==========================================
- Hits 18549 18539 -10
+ Misses 8085 8067 -18
|
ed3927c
to
7587701
Compare
What does this PR do?
Fixes lints from Rust 1.79 release:
clippy::duplicated_attributes
clippy::legacy_numeric_constants
dead_code
now triggers on somerepr(C)
FFI structs because fields are never read in Rust.Motivation
A new stable release was made, so CI starts failing.
Additional Notes
Nope.
How to test the change?
Everything should be the same.