-
Notifications
You must be signed in to change notification settings - Fork 104
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
UefiHidDxeV2: Remove mutable static shared reference #593
Conversation
2acd5ab
to
69b4a00
Compare
This PR has been automatically marked as stale because it has not had activity in 60 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
69b4a00
to
a48d1bf
Compare
Use `addr_of!()` (raw pointer) to prevent a reference being created to the mutable static variable. ``` = note: this will be a hard error in the 2024 edition = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior ``` Signed-off-by: Michael Kubacki <[email protected]>
a48d1bf
to
af71887
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev/202405 #593 +/- ##
===========================================
Coverage 11.59% 11.59%
===========================================
Files 132 132
Lines 21561 21561
Branches 2546 2546
===========================================
Hits 2499 2499
Misses 19028 19028
Partials 34 34
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Description
Use
addr_of!()
(raw pointer) to prevent a reference being created to the mutable static variable.How This Was Tested
Integration Instructions