Skip to content

Switch back to automatic Debug derive for Header struct #435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions src/table/header.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::Revision;
use core::fmt::{Debug, Formatter};

/// All standard UEFI tables begin with a common header.
#[derive(Debug)]
#[repr(C)]
pub struct Header {
/// Unique identifier for this table.
Expand All @@ -16,14 +16,3 @@ pub struct Header {
/// Reserved field that must be set to 0.
_reserved: u32,
}

impl Debug for Header {
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
f.debug_struct("Header")
.field("signature", &(self.size as *const u64))
.field("revision", &self.revision)
.field("size", &self.size)
.field("crc", &self.crc)
.finish()
}
}