feat: use Self instead of struct name whereas applicable

This commit is contained in:
CosminPerRam 2024-05-01 18:46:37 +03:00
parent f53635993e
commit 1877a16457
2 changed files with 4 additions and 4 deletions

View file

@ -194,7 +194,7 @@ impl HttpClient {
url: U,
timeout_settings: &Option<TimeoutSettings>,
headers: Option<Vec<(&str, &str)>>,
) -> GDResult<HttpClient>
) -> GDResult<Self>
where
U::Error: std::error::Error + Send + Sync + 'static,
{
@ -229,7 +229,7 @@ impl HttpClient {
headers: headers.unwrap_or_default(),
};
HttpClient::new(&address, timeout_settings, http_settings)
Self::new(&address, timeout_settings, http_settings)
}
/// Send a HTTP GET request and return the response data as a buffer.