mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
add type_repetition_in_bounds clippy lint (#8568)
This commit is contained in:
@ -159,6 +159,7 @@ iter_on_single_items = "warn"
|
||||
doc_markdown = "warn"
|
||||
unnecessary_struct_initialization = "warn"
|
||||
string_lit_as_bytes = "warn"
|
||||
type_repetition_in_bounds = "warn"
|
||||
|
||||
# These are nursery lints which have findings. Allow them for now. Some are not
|
||||
# quite mature enough for use in our codebase and some we don't really want.
|
||||
@ -174,7 +175,6 @@ non_send_fields_in_send_ty = "allow"
|
||||
redundant_pub_crate = "allow"
|
||||
significant_drop_in_scrutinee = "allow"
|
||||
significant_drop_tightening = "allow"
|
||||
type_repetition_in_bounds = "allow"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.2.0-beta.8"
|
||||
|
||||
@ -355,8 +355,7 @@ pub struct TowerServiceNoHttp<L> {
|
||||
impl<RpcMiddleware> Service<String> for TowerServiceNoHttp<RpcMiddleware>
|
||||
where
|
||||
RpcMiddleware: for<'a> Layer<RpcService>,
|
||||
<RpcMiddleware as Layer<RpcService>>::Service: Send + Sync + 'static,
|
||||
for<'a> <RpcMiddleware as Layer<RpcService>>::Service: RpcServiceT<'a>,
|
||||
for<'a> <RpcMiddleware as Layer<RpcService>>::Service: Send + Sync + 'static + RpcServiceT<'a>,
|
||||
{
|
||||
/// The response of a handled RPC call
|
||||
///
|
||||
|
||||
@ -13,8 +13,7 @@ use reth_rpc_types_compat::engine::payload::{
|
||||
#[allow(unused_must_use)]
|
||||
async fn test_basic_engine_calls<C>(client: &C)
|
||||
where
|
||||
C: ClientT + SubscriptionClientT + Sync,
|
||||
C: EngineApiClient<EthEngineTypes>,
|
||||
C: ClientT + SubscriptionClientT + Sync + EngineApiClient<EthEngineTypes>,
|
||||
{
|
||||
let block = Block::default().seal_slow();
|
||||
EngineApiClient::new_payload_v1(client, block_to_payload_v1(block.clone())).await;
|
||||
|
||||
@ -74,9 +74,9 @@ pub trait DebugApiExt {
|
||||
) -> impl Future<Output = Result<serde_json::Value, RpcError>> + Send;
|
||||
}
|
||||
|
||||
impl<T: DebugApiClient + Sync> DebugApiExt for T
|
||||
impl<T> DebugApiExt for T
|
||||
where
|
||||
T: EthApiClient,
|
||||
T: EthApiClient + DebugApiClient + Sync,
|
||||
{
|
||||
type Provider = T;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user