Browse Source

Merge pull request #210 from YtvwlD/multiple-smbios

multiboot2: builder: Allow to specify SMBIOS tag multiple times
Philipp Schuster 11 months ago
parent
commit
3df6cd4627
1 changed files with 4 additions and 1 deletions
  1. 4 1
      multiboot2/src/builder/information.rs

+ 4 - 1
multiboot2/src/builder/information.rs

@@ -288,7 +288,10 @@ impl InformationBuilder {
     }
     }
 
 
     fn tag_is_allowed_multiple_times(tag_type: TagType) -> bool {
     fn tag_is_allowed_multiple_times(tag_type: TagType) -> bool {
-        matches!(tag_type, TagType::Module | TagType::Custom(_))
+        matches!(
+            tag_type,
+            TagType::Module | TagType::Smbios | TagType::Custom(_)
+        )
     }
     }
 }
 }