Skip to content

Commit

Permalink
uefi: Derive Eq/PartialEq for GptPartitionEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Oct 1, 2024
1 parent 96b27c7 commit 2df84cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions uefi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
See [Deprecating SystemTable/BootServices/RuntimeServices][funcmigrate] for
details of the deprecated items that were removed in this release.

## Added
- Impl `PartialEq` and `Eq` for `GptPartitionEntry`.

## Changed
- **Breaking:** Deleted the deprecated `BootServices`, `RuntimeServices`, and
`SystemTable` structs.
Expand Down
2 changes: 1 addition & 1 deletion uefi/src/proto/media/partition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl GptPartitionAttributes {
/// GPT/EFI Partition Entry.
#[repr(C)]
#[repr(packed)]
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct GptPartitionEntry {
/// GUID that defines the type of this Partition. A value of zero
/// indicates that this partition entry is unused.
Expand Down

0 comments on commit 2df84cb

Please sign in to comment.