From 01952db6b023a4a12c8b68db5dc3c91cf30e654f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kami=C5=84ski?= Date: Wed, 3 Jul 2024 15:30:24 +0200 Subject: [PATCH] clippy --- crates/starknet-types-rpc/src/v0_7_1/starknet_api_openrpc.rs | 2 +- crates/starknet-types-rpc/src/v0_7_1/starknet_api_openrpc.toml | 2 +- .../starknet-types-rpc/src/v0_7_1/starknet_trace_api_openrpc.rs | 2 +- .../src/v0_7_1/starknet_trace_api_openrpc.toml | 2 +- crates/starknet-types-rpc/src/v0_7_1/starknet_write_api.rs | 2 +- crates/starknet-types-rpc/src/v0_7_1/starknet_write_api.toml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/starknet-types-rpc/src/v0_7_1/starknet_api_openrpc.rs b/crates/starknet-types-rpc/src/v0_7_1/starknet_api_openrpc.rs index 5005054..58e4a97 100644 --- a/crates/starknet-types-rpc/src/v0_7_1/starknet_api_openrpc.rs +++ b/crates/starknet-types-rpc/src/v0_7_1/starknet_api_openrpc.rs @@ -12,9 +12,9 @@ use super::{BlockId, BroadcastedDeclareTxn, BroadcastedDeployAccountTxn, Broadca use crate::custom_serde::NumAsHex; use alloc::string::String; use alloc::vec::Vec; +use core::marker::PhantomData; use serde::ser::SerializeMap; use serde::{Deserialize, Serialize}; -use std::marker::PhantomData; pub type Address = F; diff --git a/crates/starknet-types-rpc/src/v0_7_1/starknet_api_openrpc.toml b/crates/starknet-types-rpc/src/v0_7_1/starknet_api_openrpc.toml index e7e4c97..7851f0c 100644 --- a/crates/starknet-types-rpc/src/v0_7_1/starknet_api_openrpc.toml +++ b/crates/starknet-types-rpc/src/v0_7_1/starknet_api_openrpc.toml @@ -7,7 +7,7 @@ additional-imports = [ "super::{BlockId, BroadcastedDeclareTxn, BroadcastedDeployAccountTxn, BroadcastedInvokeTxn}", "alloc::vec::Vec", "alloc::string::String", - "std::marker::PhantomData" + "core::marker::PhantomData" ] method-name-prefix = "starknet_" param-types = true diff --git a/crates/starknet-types-rpc/src/v0_7_1/starknet_trace_api_openrpc.rs b/crates/starknet-types-rpc/src/v0_7_1/starknet_trace_api_openrpc.rs index 2394836..6d9cde4 100644 --- a/crates/starknet-types-rpc/src/v0_7_1/starknet_trace_api_openrpc.rs +++ b/crates/starknet-types-rpc/src/v0_7_1/starknet_trace_api_openrpc.rs @@ -14,9 +14,9 @@ use super::{ }; use alloc::string::String; use alloc::vec::Vec; +use core::marker::PhantomData; use serde::ser::SerializeMap; use serde::{Deserialize, Serialize}; -use std::marker::PhantomData; #[derive(Eq, Hash, PartialEq, Serialize, Deserialize, Clone, Debug)] pub enum CallType { diff --git a/crates/starknet-types-rpc/src/v0_7_1/starknet_trace_api_openrpc.toml b/crates/starknet-types-rpc/src/v0_7_1/starknet_trace_api_openrpc.toml index 582891c..b670eb5 100644 --- a/crates/starknet-types-rpc/src/v0_7_1/starknet_trace_api_openrpc.toml +++ b/crates/starknet-types-rpc/src/v0_7_1/starknet_trace_api_openrpc.toml @@ -6,7 +6,7 @@ additional-imports = [ "super::{FunctionCall, Event, MsgToL1, BlockId, FeeEstimate, BroadcastedTxn, StateDiff, TxnHash, ExecutionResources, ComputationResources}", "alloc::vec::Vec", "alloc::string::String", - "std::marker::PhantomData" + "core::marker::PhantomData" ] method-name-prefix = "starknet_" param-types = true diff --git a/crates/starknet-types-rpc/src/v0_7_1/starknet_write_api.rs b/crates/starknet-types-rpc/src/v0_7_1/starknet_write_api.rs index cfc40a6..e379d57 100644 --- a/crates/starknet-types-rpc/src/v0_7_1/starknet_write_api.rs +++ b/crates/starknet-types-rpc/src/v0_7_1/starknet_write_api.rs @@ -9,9 +9,9 @@ // use super::{BroadcastedDeclareTxn, BroadcastedDeployAccountTxn, BroadcastedInvokeTxn, TxnHash}; +use core::marker::PhantomData; use serde::ser::SerializeMap; use serde::{Deserialize, Serialize}; -use std::marker::PhantomData; #[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] pub struct ClassAndTxnHash { diff --git a/crates/starknet-types-rpc/src/v0_7_1/starknet_write_api.toml b/crates/starknet-types-rpc/src/v0_7_1/starknet_write_api.toml index a38e4dc..486146c 100644 --- a/crates/starknet-types-rpc/src/v0_7_1/starknet_write_api.toml +++ b/crates/starknet-types-rpc/src/v0_7_1/starknet_write_api.toml @@ -4,7 +4,7 @@ run-rustfmt = true [generation] additional-imports = [ "super::{BroadcastedDeclareTxn, BroadcastedDeployAccountTxn, BroadcastedInvokeTxn, TxnHash}", - "std::marker::PhantomData" + "core::marker::PhantomData" ] method-name-prefix = "starknet_" param-types = true