aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/http
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/http')
-rw-r--r--crates/shirabe/src/util/http/curl_downloader.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/shirabe/src/util/http/curl_downloader.rs b/crates/shirabe/src/util/http/curl_downloader.rs
index 87ea8ef..71c0b5a 100644
--- a/crates/shirabe/src/util/http/curl_downloader.rs
+++ b/crates/shirabe/src/util/http/curl_downloader.rs
@@ -339,9 +339,11 @@ impl CurlDownloader {
if !Preg::is_match(r"{^http://(repo\.)?packagist\.org/p/}", url).unwrap_or(false)
|| (strpos(url, "$").is_none() && strpos(url, "%24").is_none())
{
- self.config
- .borrow_mut()
- .prohibit_url_by_config(url, Some(&*self.io.borrow()), &options)?;
+ self.config.borrow_mut().prohibit_url_by_config(
+ url,
+ Some(&*self.io.borrow()),
+ &options,
+ )?;
}
let curl_handle = curl_init();