diff --git a/starknet-accounts/src/account/declaration.rs b/starknet-accounts/src/account/declaration.rs
index 0f07b5f8..4fff8855 100644
--- a/starknet-accounts/src/account/declaration.rs
+++ b/starknet-accounts/src/account/declaration.rs
@@ -1007,7 +1007,7 @@ impl RawLegacyDeclaration {
}
}
-impl<'a, A> PreparedDeclarationV2<'a, A>
+impl PreparedDeclarationV2<'_, A>
where
A: Account,
{
@@ -1057,7 +1057,7 @@ where
}
}
-impl<'a, A> PreparedDeclarationV3<'a, A>
+impl PreparedDeclarationV3<'_, A>
where
A: Account,
{
@@ -1126,7 +1126,7 @@ where
}
}
-impl<'a, A> PreparedLegacyDeclaration<'a, A>
+impl PreparedLegacyDeclaration<'_, A>
where
A: Account,
{
diff --git a/starknet-accounts/src/account/execution.rs b/starknet-accounts/src/account/execution.rs
index b94040ba..00aa956b 100644
--- a/starknet-accounts/src/account/execution.rs
+++ b/starknet-accounts/src/account/execution.rs
@@ -730,7 +730,7 @@ impl RawExecutionV3 {
}
}
-impl<'a, A> PreparedExecutionV1<'a, A>
+impl PreparedExecutionV1<'_, A>
where
A: Account,
{
@@ -746,7 +746,7 @@ where
}
}
-impl<'a, A> PreparedExecutionV3<'a, A>
+impl PreparedExecutionV3<'_, A>
where
A: Account,
{
diff --git a/starknet-contract/src/factory.rs b/starknet-contract/src/factory.rs
index 65416722..cc93aa01 100644
--- a/starknet-contract/src/factory.rs
+++ b/starknet-contract/src/factory.rs
@@ -139,7 +139,7 @@ where
}
}
-impl<'f, A> DeploymentV1<'f, A> {
+impl DeploymentV1<'_, A> {
/// Returns a new [`DeploymentV1`] with the `nonce`.
pub fn nonce(self, nonce: Felt) -> Self {
Self {
@@ -167,7 +167,7 @@ impl<'f, A> DeploymentV1<'f, A> {
}
}
-impl<'f, A> DeploymentV3<'f, A> {
+impl DeploymentV3<'_, A> {
/// Returns a new [`DeploymentV3`] with the `nonce`.
pub fn nonce(self, nonce: Felt) -> Self {
Self {
@@ -213,7 +213,7 @@ impl<'f, A> DeploymentV3<'f, A> {
}
}
-impl<'f, A> DeploymentV1<'f, A>
+impl DeploymentV1<'_, A>
where
A: Account,
{
@@ -235,7 +235,7 @@ where
}
}
-impl<'f, A> DeploymentV3<'f, A>
+impl DeploymentV3<'_, A>
where
A: Account,
{
diff --git a/starknet-core/src/serde/byte_array.rs b/starknet-core/src/serde/byte_array.rs
index 70b6ed6e..3fa0fb64 100644
--- a/starknet-core/src/serde/byte_array.rs
+++ b/starknet-core/src/serde/byte_array.rs
@@ -24,7 +24,7 @@ pub mod base64 {
deserializer.deserialize_any(Base64Visitor)
}
- impl<'de> Visitor<'de> for Base64Visitor {
+ impl Visitor<'_> for Base64Visitor {
type Value = Vec;
fn expecting(&self, formatter: &mut Formatter<'_>) -> alloc::fmt::Result {
diff --git a/starknet-core/src/serde/num_hex.rs b/starknet-core/src/serde/num_hex.rs
index f285a18a..2026be40 100644
--- a/starknet-core/src/serde/num_hex.rs
+++ b/starknet-core/src/serde/num_hex.rs
@@ -27,7 +27,7 @@ pub mod u64 {
}
}
- impl<'de> Visitor<'de> for NumHexVisitor {
+ impl Visitor<'_> for NumHexVisitor {
type Value = u64;
fn expecting(&self, formatter: &mut Formatter<'_>) -> alloc::fmt::Result {
diff --git a/starknet-core/src/serde/unsigned_field_element.rs b/starknet-core/src/serde/unsigned_field_element.rs
index f42606a8..380b68a2 100644
--- a/starknet-core/src/serde/unsigned_field_element.rs
+++ b/starknet-core/src/serde/unsigned_field_element.rs
@@ -55,7 +55,7 @@ impl<'de> DeserializeAs<'de, Felt> for UfeHex {
}
}
-impl<'de> Visitor<'de> for UfeHexVisitor {
+impl Visitor<'_> for UfeHexVisitor {
type Value = Felt;
fn expecting(&self, formatter: &mut Formatter<'_>) -> alloc::fmt::Result {
@@ -112,7 +112,7 @@ impl<'de> DeserializeAs<'de, Option> for UfeHexOption {
}
}
-impl<'de> Visitor<'de> for UfeHexOptionVisitor {
+impl Visitor<'_> for UfeHexOptionVisitor {
type Value = Option;
fn expecting(&self, formatter: &mut Formatter<'_>) -> alloc::fmt::Result {
@@ -180,7 +180,7 @@ impl<'de> DeserializeAs<'de, Option> for UfePendingBlockHash {
}
}
-impl<'de> Visitor<'de> for UfePendingBlockHashVisitor {
+impl Visitor<'_> for UfePendingBlockHashVisitor {
type Value = Option;
fn expecting(&self, formatter: &mut Formatter<'_>) -> alloc::fmt::Result {
diff --git a/starknet-core/src/types/codegen.rs b/starknet-core/src/types/codegen.rs
index a4483a37..e4890f3f 100644
--- a/starknet-core/src/types/codegen.rs
+++ b/starknet-core/src/types/codegen.rs
@@ -3,7 +3,7 @@
// https://github.com/xJonathanLEI/starknet-jsonrpc-codegen
// Code generated with version:
-// https://github.com/xJonathanLEI/starknet-jsonrpc-codegen#f1278dfb2ae57d319093421c038f6ec7a3dfba2f
+// https://github.com/xJonathanLEI/starknet-jsonrpc-codegen#66aa909a760ed0800232a2ca13ece97b9ea32d24
// These types are ignored from code generation. Implement them manually:
// - `RECEIPT_BLOCK`
@@ -4595,7 +4595,7 @@ impl Serialize for AddDeclareTransactionRequest {
}
}
-impl<'a> Serialize for AddDeclareTransactionRequestRef<'a> {
+impl Serialize for AddDeclareTransactionRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -4672,7 +4672,7 @@ impl Serialize for AddDeployAccountTransactionRequest {
}
}
-impl<'a> Serialize for AddDeployAccountTransactionRequestRef<'a> {
+impl Serialize for AddDeployAccountTransactionRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -4749,7 +4749,7 @@ impl Serialize for AddInvokeTransactionRequest {
}
}
-impl<'a> Serialize for AddInvokeTransactionRequestRef<'a> {
+impl Serialize for AddInvokeTransactionRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -4873,7 +4873,7 @@ impl Serialize for CallRequest {
}
}
-impl<'a> Serialize for CallRequestRef<'a> {
+impl Serialize for CallRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5011,7 +5011,7 @@ impl Serialize for EstimateFeeRequest {
}
}
-impl<'a> Serialize for EstimateFeeRequestRef<'a> {
+impl Serialize for EstimateFeeRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5145,7 +5145,7 @@ impl Serialize for EstimateMessageFeeRequest {
}
}
-impl<'a> Serialize for EstimateMessageFeeRequestRef<'a> {
+impl Serialize for EstimateMessageFeeRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5246,7 +5246,7 @@ impl Serialize for GetBlockTransactionCountRequest {
}
}
-impl<'a> Serialize for GetBlockTransactionCountRequestRef<'a> {
+impl Serialize for GetBlockTransactionCountRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5323,7 +5323,7 @@ impl Serialize for GetBlockWithReceiptsRequest {
}
}
-impl<'a> Serialize for GetBlockWithReceiptsRequestRef<'a> {
+impl Serialize for GetBlockWithReceiptsRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5400,7 +5400,7 @@ impl Serialize for GetBlockWithTxHashesRequest {
}
}
-impl<'a> Serialize for GetBlockWithTxHashesRequestRef<'a> {
+impl Serialize for GetBlockWithTxHashesRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5477,7 +5477,7 @@ impl Serialize for GetBlockWithTxsRequest {
}
}
-impl<'a> Serialize for GetBlockWithTxsRequestRef<'a> {
+impl Serialize for GetBlockWithTxsRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5565,7 +5565,7 @@ impl Serialize for GetClassAtRequest {
}
}
-impl<'a> Serialize for GetClassAtRequestRef<'a> {
+impl Serialize for GetClassAtRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5682,7 +5682,7 @@ impl Serialize for GetClassHashAtRequest {
}
}
-impl<'a> Serialize for GetClassHashAtRequestRef<'a> {
+impl Serialize for GetClassHashAtRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5799,7 +5799,7 @@ impl Serialize for GetClassRequest {
}
}
-impl<'a> Serialize for GetClassRequestRef<'a> {
+impl Serialize for GetClassRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5905,7 +5905,7 @@ impl Serialize for GetEventsRequest {
}
}
-impl<'a> Serialize for GetEventsRequestRef<'a> {
+impl Serialize for GetEventsRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -5993,7 +5993,7 @@ impl Serialize for GetNonceRequest {
}
}
-impl<'a> Serialize for GetNonceRequestRef<'a> {
+impl Serialize for GetNonceRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -6099,7 +6099,7 @@ impl Serialize for GetStateUpdateRequest {
}
}
-impl<'a> Serialize for GetStateUpdateRequestRef<'a> {
+impl Serialize for GetStateUpdateRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -6196,7 +6196,7 @@ impl Serialize for GetStorageAtRequest {
}
}
-impl<'a> Serialize for GetStorageAtRequestRef<'a> {
+impl Serialize for GetStorageAtRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[serde_as]
#[derive(Serialize)]
@@ -6336,7 +6336,7 @@ impl Serialize for GetTransactionByBlockIdAndIndexRequest {
}
}
-impl<'a> Serialize for GetTransactionByBlockIdAndIndexRequestRef<'a> {
+impl Serialize for GetTransactionByBlockIdAndIndexRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -6437,7 +6437,7 @@ impl Serialize for GetTransactionByHashRequest {
}
}
-impl<'a> Serialize for GetTransactionByHashRequestRef<'a> {
+impl Serialize for GetTransactionByHashRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[serde_as]
#[derive(Serialize)]
@@ -6521,7 +6521,7 @@ impl Serialize for GetTransactionReceiptRequest {
}
}
-impl<'a> Serialize for GetTransactionReceiptRequestRef<'a> {
+impl Serialize for GetTransactionReceiptRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[serde_as]
#[derive(Serialize)]
@@ -6605,7 +6605,7 @@ impl Serialize for GetTransactionStatusRequest {
}
}
-impl<'a> Serialize for GetTransactionStatusRequestRef<'a> {
+impl Serialize for GetTransactionStatusRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[serde_as]
#[derive(Serialize)]
@@ -6705,7 +6705,7 @@ impl Serialize for SimulateTransactionsRequest {
}
}
-impl<'a> Serialize for SimulateTransactionsRequestRef<'a> {
+impl Serialize for SimulateTransactionsRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -6868,7 +6868,7 @@ impl Serialize for TraceBlockTransactionsRequest {
}
}
-impl<'a> Serialize for TraceBlockTransactionsRequestRef<'a> {
+impl Serialize for TraceBlockTransactionsRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[derive(Serialize)]
#[serde(transparent)]
@@ -6947,7 +6947,7 @@ impl Serialize for TraceTransactionRequest {
}
}
-impl<'a> Serialize for TraceTransactionRequestRef<'a> {
+impl Serialize for TraceTransactionRequestRef<'_> {
fn serialize(&self, serializer: S) -> Result {
#[serde_as]
#[derive(Serialize)]
diff --git a/starknet-core/src/types/eth_address.rs b/starknet-core/src/types/eth_address.rs
index bfe2924d..1d0409ae 100644
--- a/starknet-core/src/types/eth_address.rs
+++ b/starknet-core/src/types/eth_address.rs
@@ -117,7 +117,7 @@ impl<'de> Deserialize<'de> for EthAddress {
}
}
-impl<'de> Visitor<'de> for EthAddressVisitor {
+impl Visitor<'_> for EthAddressVisitor {
type Value = EthAddress;
fn expecting(&self, formatter: &mut Formatter<'_>) -> alloc::fmt::Result {
diff --git a/starknet-core/src/types/hash_256.rs b/starknet-core/src/types/hash_256.rs
index 475e9b41..4513d8f6 100644
--- a/starknet-core/src/types/hash_256.rs
+++ b/starknet-core/src/types/hash_256.rs
@@ -108,7 +108,7 @@ impl<'de> Deserialize<'de> for Hash256 {
}
}
-impl<'de> Visitor<'de> for Hash256Visitor {
+impl Visitor<'_> for Hash256Visitor {
type Value = Hash256;
fn expecting(&self, formatter: &mut Formatter<'_>) -> alloc::fmt::Result {
diff --git a/starknet-core/src/types/serde_impls.rs b/starknet-core/src/types/serde_impls.rs
index 925321c8..fc65b64b 100644
--- a/starknet-core/src/types/serde_impls.rs
+++ b/starknet-core/src/types/serde_impls.rs
@@ -55,7 +55,7 @@ impl<'de> DeserializeAs<'de, u128> for NumAsHex {
}
}
-impl<'de> Visitor<'de> for NumAsHexVisitorU64 {
+impl Visitor<'_> for NumAsHexVisitorU64 {
type Value = u64;
fn expecting(&self, formatter: &mut Formatter<'_>) -> alloc::fmt::Result {
@@ -95,7 +95,7 @@ impl<'de> Visitor<'de> for NumAsHexVisitorU64 {
}
}
-impl<'de> Visitor<'de> for NumAsHexVisitorU128 {
+impl Visitor<'_> for NumAsHexVisitorU128 {
type Value = u128;
fn expecting(&self, formatter: &mut Formatter<'_>) -> alloc::fmt::Result {
diff --git a/starknet-providers/src/sequencer/models/serde_impls.rs b/starknet-providers/src/sequencer/models/serde_impls.rs
index fda5b8e7..92eaae14 100644
--- a/starknet-providers/src/sequencer/models/serde_impls.rs
+++ b/starknet-providers/src/sequencer/models/serde_impls.rs
@@ -17,7 +17,7 @@ pub(crate) mod u64_hex {
deserializer.deserialize_any(U64HexVisitor)
}
- impl<'de> Visitor<'de> for U64HexVisitor {
+ impl Visitor<'_> for U64HexVisitor {
type Value = u64;
fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
@@ -53,7 +53,7 @@ pub(crate) mod u128_hex {
deserializer.deserialize_any(U128HexVisitor)
}
- impl<'de> Visitor<'de> for U128HexVisitor {
+ impl Visitor<'_> for U128HexVisitor {
type Value = u128;
fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
@@ -92,7 +92,7 @@ pub(crate) mod u64_hex_opt {
deserializer.deserialize_any(U64HexOptVisitor)
}
- impl<'de> Visitor<'de> for U64HexOptVisitor {
+ impl Visitor<'_> for U64HexOptVisitor {
type Value = Option;
fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
diff --git a/starknet-providers/src/sequencer/models/transaction.rs b/starknet-providers/src/sequencer/models/transaction.rs
index 75aaa0b6..da14f044 100644
--- a/starknet-providers/src/sequencer/models/transaction.rs
+++ b/starknet-providers/src/sequencer/models/transaction.rs
@@ -278,7 +278,7 @@ impl<'de> Deserialize<'de> for DataAvailabilityMode {
}
}
-impl<'de> Visitor<'de> for DataAvailabilityModeVisitor {
+impl Visitor<'_> for DataAvailabilityModeVisitor {
type Value = DataAvailabilityMode;
fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {