Skip to content

Commit

Permalink
derive clone for HttpTransport and JsonRpcClient
Browse files Browse the repository at this point in the history
  • Loading branch information
greged93 committed Oct 8, 2024
1 parent 1b1071e commit 737ee65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion starknet-providers/src/jsonrpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> {
transport: T,
}
Expand Down
2 changes: 1 addition & 1 deletion starknet-providers/src/jsonrpc/transports/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 737ee65

Please sign in to comment.