From 150cda48073aa62ca7a3a50e9c33b5b5355ee05b Mon Sep 17 00:00:00 2001 From: Victor Polevoy Date: Tue, 14 May 2024 19:11:03 +0200 Subject: [PATCH] Implement Clone for the client --- src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index 412e8b00..6071a7fe 100644 --- a/src/client.rs +++ b/src/client.rs @@ -3,7 +3,7 @@ use reqwest::blocking::{Client, ClientBuilder}; use std::time::Duration; /// Url shortener: the way to retrieve a short url. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct UrlShortener { client: Client, }