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 29
29
//! - `BootInformationHeader` implementing [`Header`]
30
30
//! - `BootInformation` wrapping [`DynSizedStructure`]
31
31
//! - `type TagIter<'a> = multiboot2_common::TagIter<'a, TagHeader>`
32
- //! ([`TagIter`])
32
+ //! ([`TagIter`])
33
33
//! - `TagHeader` implementing [`Header`]
34
34
//! - Structs for each tag, each implementing [`MaybeDynSized`]
35
35
//!
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ struct ElfSectionInner64 {
219
219
}
220
220
221
221
impl ElfSection < ' _ > {
222
- /// Get the section type as a `ElfSectionType` enum variant.
222
+ /// Get the section type as an `ElfSectionType` enum variant.
223
223
#[ must_use]
224
224
pub fn section_type ( & self ) -> ElfSectionType {
225
225
match self . get ( ) . typ ( ) {
@@ -238,10 +238,7 @@ impl ElfSection<'_> {
238
238
0x6000_0000 ..=0x6FFF_FFFF => ElfSectionType :: EnvironmentSpecific ,
239
239
0x7000_0000 ..=0x7FFF_FFFF => ElfSectionType :: ProcessorSpecific ,
240
240
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" ) ;
245
242
ElfSectionType :: Unused
246
243
}
247
244
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub enum StringError {
16
16
17
17
impl Display for StringError {
18
18
fn fmt ( & self , f : & mut Formatter < ' _ > ) -> fmt:: Result {
19
- write ! ( f, "{:?}" , self )
19
+ write ! ( f, "{self :?}" )
20
20
}
21
21
}
22
22
You can’t perform that action at this time.
0 commit comments