fix: rename function to `with_http_client`

This commit is contained in:
MedzikUser 2022-11-07 17:05:01 +01:00
parent 111fef82d1
commit 25cc96774c
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 3 additions and 3 deletions

View File

@ -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 }
}