Skip to content

Commit 321040e

Browse files
authored
Merge pull request #1421 from nicholasbishop/bishop-impl-eq
uefi: Derive Eq/PartialEq for GptPartitionEntry
2 parents 96b27c7 + 2df84cb commit 321040e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

uefi/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
See [Deprecating SystemTable/BootServices/RuntimeServices][funcmigrate] for
44
details of the deprecated items that were removed in this release.
55

6+
## Added
7+
- Impl `PartialEq` and `Eq` for `GptPartitionEntry`.
8+
69
## Changed
710
- **Breaking:** Deleted the deprecated `BootServices`, `RuntimeServices`, and
811
`SystemTable` structs.

uefi/src/proto/media/partition.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl GptPartitionAttributes {
157157
/// GPT/EFI Partition Entry.
158158
#[repr(C)]
159159
#[repr(packed)]
160-
#[derive(Clone, Copy, Debug)]
160+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
161161
pub struct GptPartitionEntry {
162162
/// GUID that defines the type of this Partition. A value of zero
163163
/// indicates that this partition entry is unused.

0 commit comments

Comments
 (0)