Skip to content

Commit 1ebc752

Browse files
committed
Fix two minor clippy issues
1 parent ec24c49 commit 1ebc752

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

multiboot2-header/src/builder/information_request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub struct InformationRequestHeaderTagBuilder {
2121
#[cfg(feature = "builder")]
2222
impl InformationRequestHeaderTagBuilder {
2323
/// New builder.
24-
pub fn new(flag: HeaderTagFlag) -> Self {
24+
pub const fn new(flag: HeaderTagFlag) -> Self {
2525
Self {
2626
irs: BTreeSet::new(),
2727
flag,

multiboot2-header/src/header.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ impl<'a> Multiboot2Header<'a> {
4747
assert_eq!(
4848
reference.header_magic(),
4949
MULTIBOOT2_HEADER_MAGIC,
50-
"The Multiboot2 header must contain the MULTIBOOT2_HEADER_MAGIC={:x}",
51-
MULTIBOOT2_HEADER_MAGIC
50+
"The Multiboot2 header must contain the MULTIBOOT2_HEADER_MAGIC={MULTIBOOT2_HEADER_MAGIC:x}"
5251
);
5352
assert!(
5453
reference.verify_checksum(),

0 commit comments

Comments
 (0)