From 737ee65440fad1f0eb38767bac052a663456914a Mon Sep 17 00:00:00 2001 From: Gregory Edison Date: Tue, 8 Oct 2024 11:49:29 +0200 Subject: [PATCH] derive clone for HttpTransport and JsonRpcClient --- starknet-providers/src/jsonrpc/mod.rs | 2 +- starknet-providers/src/jsonrpc/transports/http.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/starknet-providers/src/jsonrpc/mod.rs b/starknet-providers/src/jsonrpc/mod.rs index 1f91e070..211bd3b7 100644 --- a/starknet-providers/src/jsonrpc/mod.rs +++ b/starknet-providers/src/jsonrpc/mod.rs @@ -30,7 +30,7 @@ pub use transports::{HttpTransport, HttpTransportError, JsonRpcTransport}; /// /// A "transport" is any implementation that can send JSON-RPC requests and receive responses. This /// most commonly happens over a network via HTTP connections, as with [`HttpTransport`]. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct JsonRpcClient { transport: T, } diff --git a/starknet-providers/src/jsonrpc/transports/http.rs b/starknet-providers/src/jsonrpc/transports/http.rs index bf85ca0f..fb7e6120 100644 --- a/starknet-providers/src/jsonrpc/transports/http.rs +++ b/starknet-providers/src/jsonrpc/transports/http.rs @@ -9,7 +9,7 @@ use crate::{ }; /// A [`JsonRpcTransport`] implementation that uses HTTP connections. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct HttpTransport { client: Client, url: Url,