File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 2929//! - `BootInformationHeader` implementing [`Header`]
3030//! - `BootInformation` wrapping [`DynSizedStructure`]
3131//! - `type TagIter<'a> = multiboot2_common::TagIter<'a, TagHeader>`
32- //! ([`TagIter`])
32+ //! ([`TagIter`])
3333//! - `TagHeader` implementing [`Header`]
3434//! - Structs for each tag, each implementing [`MaybeDynSized`]
3535//!
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ struct ElfSectionInner64 {
219219}
220220
221221impl ElfSection < ' _ > {
222- /// Get the section type as a `ElfSectionType` enum variant.
222+ /// Get the section type as an `ElfSectionType` enum variant.
223223 #[ must_use]
224224 pub fn section_type ( & self ) -> ElfSectionType {
225225 match self . get ( ) . typ ( ) {
@@ -238,10 +238,7 @@ impl ElfSection<'_> {
238238 0x6000_0000 ..=0x6FFF_FFFF => ElfSectionType :: EnvironmentSpecific ,
239239 0x7000_0000 ..=0x7FFF_FFFF => ElfSectionType :: ProcessorSpecific ,
240240 e => {
241- log:: warn!(
242- "Unknown section type {:x}. Treating as ElfSectionType::Unused" ,
243- e
244- ) ;
241+ log:: warn!( "Unknown section type {e:x}. Treating as ElfSectionType::Unused" ) ;
245242 ElfSectionType :: Unused
246243 }
247244 }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub enum StringError {
1616
1717impl Display for StringError {
1818 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> fmt:: Result {
19- write ! ( f, "{:?}" , self )
19+ write ! ( f, "{self :?}" )
2020 }
2121}
2222
You can’t perform that action at this time.
0 commit comments