Skip to content

Commit

Permalink
multiboot2: apply latest nightly clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
phip1611 committed Oct 21, 2024
1 parent e38d077 commit b9b6e05
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions multiboot2/src/elf_sections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl<'a> Iterator for ElfSectionIter<'a> {
}
}

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

impl<'a> ElfSection<'a> {
impl ElfSection<'_> {
/// Get the section type as a `ElfSectionType` enum variant.
#[must_use]
pub fn section_type(&self) -> ElfSectionType {
Expand Down
2 changes: 1 addition & 1 deletion multiboot2/src/framebuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ pub enum FramebufferType<'a> {
Text,
}

impl<'a> FramebufferType<'a> {
impl FramebufferType<'_> {
#[must_use]
#[cfg(feature = "builder")]
const fn id(&self) -> FramebufferTypeId {
Expand Down
4 changes: 2 additions & 2 deletions multiboot2/src/memory_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,13 @@ impl<'a> Iterator for EFIMemoryAreaIter<'a> {
}
}

impl<'a> ExactSizeIterator for EFIMemoryAreaIter<'a> {
impl ExactSizeIterator for EFIMemoryAreaIter<'_> {
fn len(&self) -> usize {
self.entries
}
}

impl<'a> Debug for EFIMemoryAreaIter<'a> {
impl Debug for EFIMemoryAreaIter<'_> {
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
let mut debug = f.debug_list();
let iter = self.clone();
Expand Down
2 changes: 1 addition & 1 deletion multiboot2/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl<'a> Iterator for ModuleIter<'a> {
}
}

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

0 comments on commit b9b6e05

Please sign in to comment.