From 25cc96774c9b91caa5f65bfdd0766de42c9afa76 Mon Sep 17 00:00:00 2001 From: MedzikUser Date: Mon, 7 Nov 2022 17:05:01 +0100 Subject: [PATCH] fix: rename function to `with_http_client` --- src/imgur/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/imgur/mod.rs b/src/imgur/mod.rs index 2a09ff6..1a5882b 100644 --- a/src/imgur/mod.rs +++ b/src/imgur/mod.rs @@ -24,10 +24,10 @@ impl ImgurClient { let client = reqwest::Client::new(); ImgurClient { client_id, client } } - + /// Create a new Imgur Client with the provided `reqwest::Client` /// - /// This allows for customization of the http client settings like timeout or the user agent. + /// This allows for customization of the http client settings like timeout or the user agent. /// ``` /// use imgurs::ImgurClient; /// use reqwest::Client; @@ -36,7 +36,7 @@ impl ImgurClient { /// /// let client = ImgurClient::with_http_client("3e3ce0d7ac14d56", http_client); /// ``` - pub fn new(client_id: &str, http_client: reqwest::Client) -> Self { + pub fn with_http_client(client_id: &str, http_client: reqwest::Client) -> Self { let client_id = client_id.to_string(); ImgurClient { client_id, client: http_client } }