diff --git a/uefi-raw/src/table/header.rs b/uefi-raw/src/table/header.rs index 3b635dab4..faab1f79c 100644 --- a/uefi-raw/src/table/header.rs +++ b/uefi-raw/src/table/header.rs @@ -1,7 +1,7 @@ use super::Revision; /// The common header that all UEFI tables begin with. -#[derive(Debug)] +#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] #[repr(C)] pub struct Header { /// Unique identifier for this table. diff --git a/uefi-raw/src/table/revision.rs b/uefi-raw/src/table/revision.rs index bc06a404a..120c72c46 100644 --- a/uefi-raw/src/table/revision.rs +++ b/uefi-raw/src/table/revision.rs @@ -30,7 +30,7 @@ use core::fmt; /// assert_eq!(Revision::EFI_2_31.to_string(), "2.3.1"); /// assert_eq!(Revision::EFI_2_100.to_string(), "2.10"); /// ``` -#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd)] +#[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd)] #[repr(transparent)] pub struct Revision(pub u32);