Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UefiHidDxeV2: Remove mutable static shared reference (#593)
## Description 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 ``` - [ ] Impacts functionality? - [ ] Impacts security? - [ ] Breaking change? - [ ] Includes tests? - [ ] Includes documentation? ## How This Was Tested - Cargo clippy and build ## Integration Instructions - N/A Signed-off-by: Michael Kubacki <[email protected]>
- Loading branch information