Skip to content

Commit

Permalink
multiboot2: end tag nit
Browse files Browse the repository at this point in the history
  • Loading branch information
phip1611 committed Sep 2, 2024
1 parent 2698ed3 commit b14070d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions multiboot2/src/end.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
//! Module for [`EndTag`].
use crate::{TagHeader, TagType, TagTypeId};
use crate::{TagHeader, TagType};
use core::mem;
use multiboot2_common::{MaybeDynSized, Tag};

/// The end tag ends the information struct.
#[derive(Debug)]
#[repr(C, align(8))]
pub struct EndTag {
typ: TagTypeId,
size: u32,
header: TagHeader,
}

impl Default for EndTag {
fn default() -> Self {
Self {
typ: TagType::End.into(),
size: 8,
header: TagHeader::new(TagType::End, mem::size_of::<Self>() as u32),
}
}
}
Expand Down

0 comments on commit b14070d

Please sign in to comment.