Skip to content

Commit

Permalink
uefi-raw: Add more derives for Revision and Header
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Jun 19, 2023
1 parent 163aea3 commit 12e4a20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uefi-raw/src/table/header.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion uefi-raw/src/table/revision.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 12e4a20

Please sign in to comment.