From 12e4a207b868ea6399f56611fc9ee15b7d3c7ea1 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Mon, 19 Jun 2023 19:16:47 -0400 Subject: [PATCH] uefi-raw: Add more derives for Revision and Header --- uefi-raw/src/table/header.rs | 2 +- uefi-raw/src/table/revision.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);