Browse Source

multiboot2: builder: Allow to specify SMBIOS tag multiple times

Niklas Sombert 11 tháng trước cách đây
mục cha
commit
c17086c3d0
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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(_)
+        )
     }
 }