Explorar el Código

multiboot2: builder: Allow to specify SMBIOS tag multiple times

Niklas Sombert hace 11 meses
padre
commit
c17086c3d0
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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(_)
+        )
     }
 }