Skip to content

Commit 80a8923

Browse files
Add standard derives for VariableKey
1 parent 0b60f8f commit 80a8923

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

uefi/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Add standard derives for `ConfigTableEntry`.
99
- `PcrEvent`/`PcrEventInputs` impl `Align`, `Eq`, and `PartialEq`.
1010
- Added `PcrEvent::new_in_box` and `PcrEventInputs::new_in_box`.
11+
- `VariableKey` impls `Clone`, `Eq`, `PartialEq`, `Ord`, `PartialOrd`, and `Hash`.
1112

1213
## Changed
1314
- **Breaking:** `uefi::helpers::init` no longer takes an argument.

uefi/src/table/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ impl TryFrom<&[u8]> for Time {
647647

648648
/// Unique key for a variable.
649649
#[cfg(feature = "alloc")]
650-
#[derive(Debug)]
650+
#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
651651
pub struct VariableKey {
652652
pub(crate) name: Vec<u16>,
653653
/// Unique identifier for the vendor.

0 commit comments

Comments
 (0)