Skip to content

Commit

Permalink
Allow needless_lifetimes for now
Browse files Browse the repository at this point in the history
For iterator impl bounds, there are often 2 lifetimes, clippy would want to remove one, I don't think it's a good idea
Since there are many trait impl like this and an iterator rework is near, I'll take care of it then
  • Loading branch information
leudz committed Dec 17, 2024
1 parent 81e9209 commit 25e8c82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/iter/into_abstract/or.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::type_id::TypeId;
use alloc::vec;
use alloc::vec::Vec;

impl<'a: 'b, 'b, T: IntoAbstract, U: IntoAbstract> IntoAbstract for Or<(T, U)>
impl<T: IntoAbstract, U: IntoAbstract> IntoAbstract for Or<(T, U)>
where
<U as IntoAbstract>::AbsView: AbstractMut,
<<U as IntoAbstract>::AbsView as AbstractMut>::Index: Into<usize> + Clone,
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#![warn(clippy::print_stdout)]
#![warn(clippy::maybe_infinite_iter)]
#![allow(clippy::uninlined_format_args)]
#![allow(clippy::needless_lifetimes)]
#![cfg_attr(not(any(feature = "std", test)), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]
Expand Down

0 comments on commit 25e8c82

Please sign in to comment.