We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2698ed3 commit b14070dCopy full SHA for b14070d
multiboot2/src/end.rs
@@ -1,22 +1,20 @@
1
//! Module for [`EndTag`].
2
3
-use crate::{TagHeader, TagType, TagTypeId};
+use crate::{TagHeader, TagType};
4
use core::mem;
5
use multiboot2_common::{MaybeDynSized, Tag};
6
7
/// The end tag ends the information struct.
8
#[derive(Debug)]
9
#[repr(C, align(8))]
10
pub struct EndTag {
11
- typ: TagTypeId,
12
- size: u32,
+ header: TagHeader,
13
}
14
15
impl Default for EndTag {
16
fn default() -> Self {
17
Self {
18
- typ: TagType::End.into(),
19
- size: 8,
+ header: TagHeader::new(TagType::End, mem::size_of::<Self>() as u32),
20
21
22
0 commit comments