Skip to content

Commit d2e38e7

Browse files
author
Peter Sebastian Puetz
committed
Impl Clone for Client
... thus a user does not need to wrap it into an Arc<...> explicitly as the inner reqwest::Client is already wrapped into an Arc<...>
1 parent dfc053e commit d2e38e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ impl Scheme {
2626

2727
/// A client used to execute queries. It uses a [reqwest::Client] internally
2828
/// that manages connections for us.
29+
#[derive(Clone)]
2930
pub struct Client {
3031
pub(crate) client: reqwest::Client,
3132
pub(crate) base_url: String,

0 commit comments

Comments
 (0)