소스 검색

Merge pull request #210 from YtvwlD/multiple-smbios

multiboot2: builder: Allow to specify SMBIOS tag multiple times
Philipp Schuster 11 달 전
부모
커밋
3df6cd4627
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(_)
+        )
     }
 }