mirror of https://github.com/MedzikUser/imgurs
fix: rename function to `with_http_client`
This commit is contained in:
parent
111fef82d1
commit
25cc96774c
|
@ -36,7 +36,7 @@ impl ImgurClient {
|
||||||
///
|
///
|
||||||
/// let client = ImgurClient::with_http_client("3e3ce0d7ac14d56", http_client);
|
/// 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();
|
let client_id = client_id.to_string();
|
||||||
ImgurClient { client_id, client: http_client }
|
ImgurClient { client_id, client: http_client }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue