Skip to content

Commit

Permalink
enable clippy::use_self lint and do fixes
Browse files Browse the repository at this point in the history
fix: unnecessary structure name repetition
for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#use_self
  • Loading branch information
gwen-lg authored and usbalbin committed Jun 16, 2024
1 parent 9f22529 commit c926707
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// enable additionnal lints
#![warn(clippy::doc_markdown)]
#![warn(clippy::ignored_unit_patterns)]
#![warn(clippy::use_self)]

use core::iter;

Expand Down Expand Up @@ -78,7 +79,7 @@ where
///
// TODO: Would it be ok if it generated more elements?
pub unsafe fn from_iter<II: IntoIterator<IntoIter = I>>(i: II) -> Self {
IteratorFixed {
Self {
inner: i.into_iter(),
}
}
Expand Down

0 comments on commit c926707

Please sign in to comment.