Skip to content

Commit bbb319b

Browse files
committed
multiboot2: end tag nit
1 parent e9f23cf commit bbb319b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

multiboot2/src/end.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ use multiboot2_common::{MaybeDynSized, Tag};
88
#[derive(Debug)]
99
#[repr(C, align(8))]
1010
pub struct EndTag {
11-
typ: TagTypeId,
12-
size: u32,
11+
header: TagHeader,
1312
}
1413

1514
impl Default for EndTag {
1615
fn default() -> Self {
1716
Self {
18-
typ: TagType::End.into(),
19-
size: 8,
17+
header: TagHeader::new(TagType::End, size_of::<Self>() as u32),
2018
}
2119
}
2220
}

0 commit comments

Comments
 (0)