Преглед изворни кода

multiboot2: builder: Allow to specify SMBIOS tag multiple times

Niklas Sombert пре 11 месеци
родитељ
комит
c17086c3d0
1 измењених фајлова са 4 додато и 1 уклоњено
  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 {
-        matches!(tag_type, TagType::Module | TagType::Custom(_))
+        matches!(
+            tag_type,
+            TagType::Module | TagType::Smbios | TagType::Custom(_)
+        )
     }
 }