Skip to content

Commit 9b0c42b

Browse files
committed
multiboot2: misc code improvement
1 parent af45ab2 commit 9b0c42b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

multiboot2/src/boot_information.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,11 @@ use multiboot2_common::{BytesRef, DynSizedStructure, Header};
2020
/// from a given address.
2121
#[derive(Display, Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
2222
pub enum MbiLoadError {
23-
/// The address is invalid. Make sure that the address is 8-byte aligned,
24-
/// according to the spec.
25-
#[display(fmt = "The address is invalid")]
23+
/// The address is invalid. Make sure that the address is 8-byte aligned.
2624
IllegalAddress,
27-
/// The total size of the multiboot2 information structure must be not zero
28-
/// and a multiple of 8.
29-
#[display(fmt = "The size of the MBI is unexpected")]
25+
/// The total size must be not zero and a multiple of 8.
3026
IllegalTotalSize(u32),
31-
/// Missing end tag. Each multiboot2 boot information requires to have an
32-
/// end tag.
33-
#[display(fmt = "There is no end tag")]
27+
/// Missing mandatory end tag.
3428
NoEndTag,
3529
}
3630

0 commit comments

Comments
 (0)