File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub struct InformationRequestHeaderTagBuilder {
2121#[ cfg( feature = "builder" ) ]
2222impl 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,
Original file line number Diff line number Diff 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( ) ,
You can’t perform that action at this time.
0 commit comments