Skip to content

Commit ae36a9a

Browse files
committed
clippy: fixes
1 parent e604476 commit ae36a9a

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

multiboot2-common/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
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
//!

multiboot2/src/elf_sections.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ struct ElfSectionInner64 {
219219
}
220220

221221
impl 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
}

multiboot2/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub enum StringError {
1616

1717
impl Display for StringError {
1818
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
19-
write!(f, "{:?}", self)
19+
write!(f, "{self:?}")
2020
}
2121
}
2222

0 commit comments

Comments
 (0)