Enable clippy's trait_duplication_in_bounds linter (#7201)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Justin Traglia
2024-03-18 17:53:17 -05:00
committed by GitHub
parent 3861bc05fa
commit f7d3cc5a09
4 changed files with 3 additions and 4 deletions

View File

@ -89,6 +89,7 @@ rust.unused_must_use = "deny"
rust.rust_2018_idioms = "deny"
clippy.empty_line_after_outer_attr = "deny"
clippy.derive_partial_eq_without_eq = "deny"
clippy.trait_duplication_in_bounds = "deny"
[workspace.package]
version = "0.2.0-beta.3"

View File

@ -433,12 +433,10 @@ mod tests {
F: FnOnce(StreamClone) -> Pin<Box<(dyn Future<Output = BytesMut> + Send)>>
+ Send
+ Sync
+ Send
+ 'static,
G: FnOnce(StreamClone) -> Pin<Box<(dyn Future<Output = BytesMut> + Send)>>
+ Send
+ Sync
+ Send
+ 'static,
{
let local_addr = self.local_addr;

View File

@ -97,7 +97,7 @@ struct StorageRevertsIter<R: Iterator, W: Iterator> {
wiped: Peekable<W>,
}
impl<R: Iterator, W: Iterator> StorageRevertsIter<R, W>
impl<R, W> StorageRevertsIter<R, W>
where
R: Iterator<Item = (B256, RevertToSlot)>,
W: Iterator<Item = (B256, U256)>,

View File

@ -523,7 +523,7 @@ where
}
}
impl<V: TransactionValidator, T: TransactionOrdering, S> TransactionPoolExt for Pool<V, T, S>
impl<V, T, S> TransactionPoolExt for Pool<V, T, S>
where
V: TransactionValidator,
T: TransactionOrdering<Transaction = <V as TransactionValidator>::Transaction>,