Skip to content

Commit b9b6e05

Browse files
committed
multiboot2: apply latest nightly clippy suggestions
1 parent e38d077 commit b9b6e05

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

multiboot2/src/elf_sections.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl<'a> Iterator for ElfSectionIter<'a> {
134134
}
135135
}
136136

137-
impl<'a> Debug for ElfSectionIter<'a> {
137+
impl Debug for ElfSectionIter<'_> {
138138
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
139139
let mut debug = f.debug_list();
140140
self.clone().for_each(|ref e| {
@@ -183,7 +183,7 @@ struct ElfSectionInner64 {
183183
entry_size: u64,
184184
}
185185

186-
impl<'a> ElfSection<'a> {
186+
impl ElfSection<'_> {
187187
/// Get the section type as a `ElfSectionType` enum variant.
188188
#[must_use]
189189
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)