3333//! ```
3434//!
3535//! ## MSRV
36- //! The MSRV is 1.68 .0 stable.
36+ //! The MSRV is 1.69 .0 stable.
3737
3838#[ cfg( feature = "builder" ) ]
3939extern crate alloc;
@@ -84,7 +84,7 @@ pub use module::{ModuleIter, ModuleTag};
8484pub use ptr_meta:: Pointee ;
8585pub use rsdp:: { RsdpV1Tag , RsdpV2Tag } ;
8686pub use smbios:: SmbiosTag ;
87- pub use tag:: Tag ;
87+ pub use tag:: { StringError , Tag } ;
8888pub use tag_trait:: TagTrait ;
8989pub use tag_type:: { TagType , TagTypeId } ;
9090pub use vbe_info:: {
@@ -447,7 +447,7 @@ impl<'a> BootInformation<'a> {
447447 ///
448448 /// impl CustomTag {
449449 /// fn name(&self) -> Result<&str, Utf8Error> {
450- /// Tag::get_dst_str_slice (&self.name)
450+ /// Tag::parse_slice_as_string (&self.name)
451451 /// }
452452 /// }
453453 /// let mbi_ptr = 0xdeadbeef as *const BootInformationHeader;
@@ -524,7 +524,7 @@ impl fmt::Debug for BootInformation<'_> {
524524mod tests {
525525 use super :: * ;
526526 use crate :: memory_map:: MemoryAreaType ;
527- use core :: str :: Utf8Error ;
527+ use crate :: tag :: StringError ;
528528
529529 /// Compile time test to check if the boot information is Send and Sync.
530530 /// This test is relevant to give library users flexebility in passing the
@@ -542,7 +542,6 @@ mod tests {
542542 8 , 0 , 0 , 0 , // end tag size
543543 ] ) ;
544544 let ptr = bytes. 0 . as_ptr ( ) ;
545- let addr = ptr as usize ;
546545 let bi = unsafe { BootInformation :: load ( ptr. cast ( ) ) } ;
547546 let bi = bi. unwrap ( ) ;
548547
@@ -1604,8 +1603,8 @@ mod tests {
16041603 }
16051604
16061605 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 )
16091608 }
16101609 }
16111610
0 commit comments