Skip to content

Commit

Permalink
chore: Appease clippy
Browse files Browse the repository at this point in the history
As clippy of rust-toolchain version 1.83.0-beta.1 suggests, elide
needless lifetimes to `'_`.

Signed-off-by: Ruoqing He <[email protected]>
  • Loading branch information
RuoqingHe committed Oct 23, 2024
1 parent 7bd1626 commit 8891ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gpio/pci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ pub struct PciBarIter<'a> {
bar_num: PciBarIndex,
}

impl<'a> Iterator for PciBarIter<'a> {
impl Iterator for PciBarIter<'_> {
type Item = PciBarConfiguration;

fn next(&mut self) -> Option<Self::Item> {
Expand Down

0 comments on commit 8891ba2

Please sign in to comment.