We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec24c49 commit 1ebc752Copy full SHA for 1ebc752
multiboot2-header/src/builder/information_request.rs
@@ -21,7 +21,7 @@ pub struct InformationRequestHeaderTagBuilder {
21
#[cfg(feature = "builder")]
22
impl InformationRequestHeaderTagBuilder {
23
/// New builder.
24
- pub fn new(flag: HeaderTagFlag) -> Self {
+ pub const fn new(flag: HeaderTagFlag) -> Self {
25
Self {
26
irs: BTreeSet::new(),
27
flag,
multiboot2-header/src/header.rs
@@ -47,8 +47,7 @@ impl<'a> Multiboot2Header<'a> {
47
assert_eq!(
48
reference.header_magic(),
49
MULTIBOOT2_HEADER_MAGIC,
50
- "The Multiboot2 header must contain the MULTIBOOT2_HEADER_MAGIC={:x}",
51
- MULTIBOOT2_HEADER_MAGIC
+ "The Multiboot2 header must contain the MULTIBOOT2_HEADER_MAGIC={MULTIBOOT2_HEADER_MAGIC:x}"
52
);
53
assert!(
54
reference.verify_checksum(),
0 commit comments