From c17086c3d0b44580fcfabe05875b36fbf1e64e89 Mon Sep 17 00:00:00 2001 From: Niklas Sombert Date: Fri, 26 Apr 2024 10:39:13 +0200 Subject: [PATCH] multiboot2: builder: Allow to specify SMBIOS tag multiple times --- multiboot2/src/builder/information.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/multiboot2/src/builder/information.rs b/multiboot2/src/builder/information.rs index 700072cd..8d16a903 100644 --- a/multiboot2/src/builder/information.rs +++ b/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(_) + ) } }