diff --git a/src/lib.rs b/src/lib.rs index ca3adbb..6514a29 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,13 +12,17 @@ #![forbid( clippy::correctness, clippy::suspicious, - clippy::complexity, clippy::perf, clippy::style, - clippy::cargo + clippy::cargo, + clippy::should_panic_without_expect, + clippy::incompatible_msrv, + clippy::expect_used, + clippy::missing_safety_doc, + clippy::missing_panics_doc )] -#![forbid(clippy::should_panic_without_expect, clippy::incompatible_msrv)] #![forbid(rustdoc::all)] +#![deny(clippy::complexity)] //! A utility library for reading data from input and writing data to output. //! diff --git a/src/read/iter.rs b/src/read/iter.rs index a5e6d10..eceb58e 100644 --- a/src/read/iter.rs +++ b/src/read/iter.rs @@ -25,6 +25,7 @@ impl<'f, 's, F: Format, S: ?Sized, T: ReadOneFrom> ReadAll<'f, 's, F, S, T> { } } +#[expect(clippy::needless_lifetimes)] impl<'l, 's, F: Format, S: BufReadExt + ?Sized, T: ReadOneFrom> Iterator for ReadAll<'l, 's, F, S, T> { @@ -60,6 +61,7 @@ impl<'l, 's, L: Format, T: ReadOneFrom> ReadAllIn<'l, 's, L, T> { } } +#[expect(clippy::needless_lifetimes)] impl<'l, 's, L: Format, T: ReadOneFrom> Iterator for ReadAllIn<'l, 's, L, T> { type Item = Result>; diff --git a/src/utf8char/iter_fixed.rs b/src/utf8char/iter_fixed.rs index 1e37c2e..750de98 100644 --- a/src/utf8char/iter_fixed.rs +++ b/src/utf8char/iter_fixed.rs @@ -25,6 +25,7 @@ impl<'a> IterFixedUtf8Char<'a> { } } +#[expect(clippy::needless_lifetimes)] impl<'a> Iterator for IterFixedUtf8Char<'a> { type Item = FixedUtf8Char; diff --git a/src/write/sep_by.rs b/src/write/sep_by.rs index 616c69b..a918105 100644 --- a/src/write/sep_by.rs +++ b/src/write/sep_by.rs @@ -18,6 +18,7 @@ pub struct SepBy<'a, I, S: ?Sized> { iter: I, } +#[expect(clippy::needless_lifetimes)] impl<'a, I: Clone, S: ?Sized> Clone for SepBy<'a, I, S> { #[inline] fn clone(&self) -> Self {