Skip to content

Commit

Permalink
feat: derive Clone for HttpTransport and JsonRpcClient (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
greged93 authored Oct 21, 2024
1 parent 1fc8b91 commit d7a5feb
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 d7a5feb

Please sign in to comment.