From 49ea0925537833b4c95d0fec61beeb7d9d75d8bf Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Tue, 5 Nov 2024 01:31:55 +0800 Subject: [PATCH] chore: make nightly clippy happy --- starknet-accounts/src/account/declaration.rs | 6 +++--- starknet-accounts/src/account/execution.rs | 4 ++-- starknet-accounts/src/factory/mod.rs | 4 ++-- starknet-contract/src/factory.rs | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/starknet-accounts/src/account/declaration.rs b/starknet-accounts/src/account/declaration.rs index 4fff8855..b47296fa 100644 --- a/starknet-accounts/src/account/declaration.rs +++ b/starknet-accounts/src/account/declaration.rs @@ -1019,7 +1019,7 @@ where } } -impl<'a, A> PreparedDeclarationV2<'a, A> +impl PreparedDeclarationV2<'_, A> where A: ConnectedAccount, { @@ -1069,7 +1069,7 @@ where } } -impl<'a, A> PreparedDeclarationV3<'a, A> +impl PreparedDeclarationV3<'_, A> where A: ConnectedAccount, { @@ -1138,7 +1138,7 @@ where } } -impl<'a, A> PreparedLegacyDeclaration<'a, A> +impl PreparedLegacyDeclaration<'_, A> where A: ConnectedAccount, { diff --git a/starknet-accounts/src/account/execution.rs b/starknet-accounts/src/account/execution.rs index 00aa956b..4c019c01 100644 --- a/starknet-accounts/src/account/execution.rs +++ b/starknet-accounts/src/account/execution.rs @@ -762,7 +762,7 @@ where } } -impl<'a, A> PreparedExecutionV1<'a, A> +impl PreparedExecutionV1<'_, A> where A: ConnectedAccount, { @@ -804,7 +804,7 @@ where } } -impl<'a, A> PreparedExecutionV3<'a, A> +impl PreparedExecutionV3<'_, A> where A: ConnectedAccount, { diff --git a/starknet-accounts/src/factory/mod.rs b/starknet-accounts/src/factory/mod.rs index b893abc3..e1d7d09c 100644 --- a/starknet-accounts/src/factory/mod.rs +++ b/starknet-accounts/src/factory/mod.rs @@ -881,7 +881,7 @@ impl<'f, F> PreparedAccountDeploymentV3<'f, F> { } } -impl<'f, F> PreparedAccountDeploymentV1<'f, F> +impl PreparedAccountDeploymentV1<'_, F> where F: AccountFactory, { @@ -953,7 +953,7 @@ where } } -impl<'f, F> PreparedAccountDeploymentV3<'f, F> +impl PreparedAccountDeploymentV3<'_, F> where F: AccountFactory, { diff --git a/starknet-contract/src/factory.rs b/starknet-contract/src/factory.rs index cc93aa01..a3a8ff64 100644 --- a/starknet-contract/src/factory.rs +++ b/starknet-contract/src/factory.rs @@ -257,7 +257,7 @@ where } } -impl<'f, A> DeploymentV1<'f, A> +impl DeploymentV1<'_, A> where A: ConnectedAccount + Sync, { @@ -285,7 +285,7 @@ where } } -impl<'f, A> DeploymentV3<'f, A> +impl DeploymentV3<'_, A> where A: ConnectedAccount + Sync, {