diff --git a/src/lib.rs b/src/lib.rs index 62c40be..eccce1c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,6 +5,7 @@ // enable additionnal lints #![warn(clippy::doc_markdown)] #![warn(clippy::ignored_unit_patterns)] +#![warn(clippy::use_self)] use core::iter; @@ -78,7 +79,7 @@ where /// // TODO: Would it be ok if it generated more elements? pub unsafe fn from_iter>(i: II) -> Self { - IteratorFixed { + Self { inner: i.into_iter(), } }