Skip to content

Commit 0efe446

Browse files
Freax13GabrielMajeri
authored andcommitted
add derives
1 parent b2b816e commit 0efe446

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/proto/network/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub mod pxe;
66

77
/// Represents an IPv4/v6 address. Corresponds to `EFI_IP_ADDRESS` type in the
88
/// C API.
9-
#[derive(Clone, Copy)]
9+
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
1010
#[repr(C, align(4))]
1111
pub struct IpAddress(pub [u8; 16]);
1212

@@ -29,6 +29,6 @@ impl IpAddress {
2929

3030
/// Represents a MAC (media access control) address. Corresponds to the
3131
/// `EFI_MAC_ADDRESS` type in the C API.
32-
#[derive(Clone, Copy)]
32+
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
3333
#[repr(C)]
3434
pub struct MacAddress(pub [u8; 32]);

src/proto/network/pxe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ impl BaseCode {
617617
}
618618

619619
// EFI_PXE_BASE_CODE_BOOT_*
620+
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
620621
#[repr(u16)]
621622
#[allow(missing_docs)]
622623
pub enum BootstrapType {

0 commit comments

Comments
 (0)