Skip to content

Commit 2d669bf

Browse files
committed
multiboot2: apply latest nightly clippy suggestions
1 parent afb6fad commit 2d669bf

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

multiboot2/src/elf_sections.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ impl<'a> Iterator for ElfSectionIter<'a> {
141141
}
142142
}
143143

144-
impl<'a> ExactSizeIterator for ElfSectionIter<'a> {
144+
impl ExactSizeIterator for ElfSectionIter<'_> {
145145
fn len(&self) -> usize {
146146
self.remaining_sections as usize
147147
}
148148
}
149149

150-
impl<'a> Debug for ElfSectionIter<'a> {
150+
impl Debug for ElfSectionIter<'_> {
151151
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
152152
/// Limit how many Elf-Sections should be debug-formatted.
153153
/// Can be thousands of sections for a Rust binary => this is useless output.
@@ -218,7 +218,7 @@ struct ElfSectionInner64 {
218218
entry_size: u64,
219219
}
220220

221-
impl<'a> ElfSection<'a> {
221+
impl ElfSection<'_> {
222222
/// Get the section type as a `ElfSectionType` enum variant.
223223
#[must_use]
224224
pub fn section_type(&self) -> ElfSectionType {

multiboot2/src/framebuffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ pub enum FramebufferType<'a> {
319319
Text,
320320
}
321321

322-
impl<'a> FramebufferType<'a> {
322+
impl FramebufferType<'_> {
323323
#[must_use]
324324
#[cfg(feature = "builder")]
325325
const fn id(&self) -> FramebufferTypeId {

multiboot2/src/memory_map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,13 +455,13 @@ impl<'a> Iterator for EFIMemoryAreaIter<'a> {
455455
}
456456
}
457457

458-
impl<'a> ExactSizeIterator for EFIMemoryAreaIter<'a> {
458+
impl ExactSizeIterator for EFIMemoryAreaIter<'_> {
459459
fn len(&self) -> usize {
460460
self.entries
461461
}
462462
}
463463

464-
impl<'a> Debug for EFIMemoryAreaIter<'a> {
464+
impl Debug for EFIMemoryAreaIter<'_> {
465465
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
466466
let mut debug = f.debug_list();
467467
let iter = self.clone();

multiboot2/src/module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl<'a> Iterator for ModuleIter<'a> {
123123
}
124124
}
125125

126-
impl<'a> Debug for ModuleIter<'a> {
126+
impl Debug for ModuleIter<'_> {
127127
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
128128
let mut list = f.debug_list();
129129
self.clone().for_each(|tag| {

0 commit comments

Comments
 (0)