33
33
//! ```
34
34
//!
35
35
//! ## MSRV
36
- //! The MSRV is 1.68 .0 stable.
36
+ //! The MSRV is 1.69 .0 stable.
37
37
38
38
#[ cfg( feature = "builder" ) ]
39
39
extern crate alloc;
@@ -84,7 +84,7 @@ pub use module::{ModuleIter, ModuleTag};
84
84
pub use ptr_meta:: Pointee ;
85
85
pub use rsdp:: { RsdpV1Tag , RsdpV2Tag } ;
86
86
pub use smbios:: SmbiosTag ;
87
- pub use tag:: Tag ;
87
+ pub use tag:: { StringError , Tag } ;
88
88
pub use tag_trait:: TagTrait ;
89
89
pub use tag_type:: { TagType , TagTypeId } ;
90
90
pub use vbe_info:: {
@@ -447,7 +447,7 @@ impl<'a> BootInformation<'a> {
447
447
///
448
448
/// impl CustomTag {
449
449
/// fn name(&self) -> Result<&str, Utf8Error> {
450
- /// Tag::get_dst_str_slice (&self.name)
450
+ /// Tag::parse_slice_as_string (&self.name)
451
451
/// }
452
452
/// }
453
453
/// let mbi_ptr = 0xdeadbeef as *const BootInformationHeader;
@@ -524,7 +524,7 @@ impl fmt::Debug for BootInformation<'_> {
524
524
mod tests {
525
525
use super :: * ;
526
526
use crate :: memory_map:: MemoryAreaType ;
527
- use core :: str :: Utf8Error ;
527
+ use crate :: tag :: StringError ;
528
528
529
529
/// Compile time test to check if the boot information is Send and Sync.
530
530
/// This test is relevant to give library users flexebility in passing the
@@ -542,7 +542,6 @@ mod tests {
542
542
8 , 0 , 0 , 0 , // end tag size
543
543
] ) ;
544
544
let ptr = bytes. 0 . as_ptr ( ) ;
545
- let addr = ptr as usize ;
546
545
let bi = unsafe { BootInformation :: load ( ptr. cast ( ) ) } ;
547
546
let bi = bi. unwrap ( ) ;
548
547
@@ -1604,8 +1603,8 @@ mod tests {
1604
1603
}
1605
1604
1606
1605
impl CustomTag {
1607
- fn name ( & self ) -> Result < & str , Utf8Error > {
1608
- Tag :: get_dst_str_slice ( & self . name )
1606
+ fn name ( & self ) -> Result < & str , StringError > {
1607
+ Tag :: parse_slice_as_string ( & self . name )
1609
1608
}
1610
1609
}
1611
1610
0 commit comments