1- //! Exports item [`Multiboot2InformationBuilder `].
1+ //! Exports item [`InformationBuilder `].
22use crate :: builder:: traits:: StructAsBytes ;
33use crate :: {
44 BasicMemoryInfoTag , BootInformationInner , BootLoaderNameTag , CommandLineTag ,
@@ -16,7 +16,7 @@ use core::mem::size_of;
1616/// except for the END tag.
1717#[ derive( Debug ) ]
1818// #[derive(Debug, PartialEq, Eq)] // wait for uefi-raw 0.3.0
19- pub struct Multiboot2InformationBuilder {
19+ pub struct InformationBuilder {
2020 basic_memory_info_tag : Option < BasicMemoryInfoTag > ,
2121 boot_loader_name_tag : Option < Box < BootLoaderNameTag > > ,
2222 command_line_tag : Option < Box < CommandLineTag > > ,
@@ -36,7 +36,7 @@ pub struct Multiboot2InformationBuilder {
3636 smbios_tags : Vec < Box < SmbiosTag > > ,
3737}
3838
39- impl Multiboot2InformationBuilder {
39+ impl InformationBuilder {
4040 pub const fn new ( ) -> Self {
4141 Self {
4242 basic_memory_info_tag : None ,
@@ -289,20 +289,20 @@ impl Multiboot2InformationBuilder {
289289
290290#[ cfg( test) ]
291291mod tests {
292- use crate :: builder:: information:: Multiboot2InformationBuilder ;
292+ use crate :: builder:: information:: InformationBuilder ;
293293 use crate :: { load, BasicMemoryInfoTag , CommandLineTag , ModuleTag } ;
294294
295295 #[ test]
296296 fn test_size_or_up_aligned ( ) {
297- assert_eq ! ( 0 , Multiboot2InformationBuilder :: size_or_up_aligned( 0 ) ) ;
298- assert_eq ! ( 8 , Multiboot2InformationBuilder :: size_or_up_aligned( 1 ) ) ;
299- assert_eq ! ( 8 , Multiboot2InformationBuilder :: size_or_up_aligned( 8 ) ) ;
300- assert_eq ! ( 16 , Multiboot2InformationBuilder :: size_or_up_aligned( 9 ) ) ;
297+ assert_eq ! ( 0 , InformationBuilder :: size_or_up_aligned( 0 ) ) ;
298+ assert_eq ! ( 8 , InformationBuilder :: size_or_up_aligned( 1 ) ) ;
299+ assert_eq ! ( 8 , InformationBuilder :: size_or_up_aligned( 8 ) ) ;
300+ assert_eq ! ( 16 , InformationBuilder :: size_or_up_aligned( 9 ) ) ;
301301 }
302302
303303 #[ test]
304304 fn test_builder ( ) {
305- let mut builder = Multiboot2InformationBuilder :: new ( ) ;
305+ let mut builder = InformationBuilder :: new ( ) ;
306306 // Multiboot2 basic information + end tag
307307 let mut expected_len = 8 + 8 ;
308308 assert_eq ! ( builder. expected_len( ) , expected_len) ;
0 commit comments