Skip to content

Commit 12e4a20

Browse files
uefi-raw: Add more derives for Revision and Header
1 parent 163aea3 commit 12e4a20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

uefi-raw/src/table/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::Revision;
22

33
/// The common header that all UEFI tables begin with.
4-
#[derive(Debug)]
4+
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
55
#[repr(C)]
66
pub struct Header {
77
/// Unique identifier for this table.

uefi-raw/src/table/revision.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use core::fmt;
3030
/// assert_eq!(Revision::EFI_2_31.to_string(), "2.3.1");
3131
/// assert_eq!(Revision::EFI_2_100.to_string(), "2.10");
3232
/// ```
33-
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd)]
33+
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd)]
3434
#[repr(transparent)]
3535
pub struct Revision(pub u32);
3636

0 commit comments

Comments
 (0)