diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:53:53 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 02:53:53 +0900 |
| commit | a1c7e6908a26e10f6e1f23a51721664b5e2d838d (patch) | |
| tree | c575c76f1b43359ed74913da4c6a2636643f1ba0 /crates/shirabe/src/util/http/proxy_manager.rs | |
| parent | 7f606f36fef0c0467c3c0db3d0da33af486dae8a (diff) | |
| download | php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.tar.gz php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.tar.zst php-shirabe-a1c7e6908a26e10f6e1f23a51721664b5e2d838d.zip | |
chore(style): cargo fmt
Diffstat (limited to 'crates/shirabe/src/util/http/proxy_manager.rs')
| -rw-r--r-- | crates/shirabe/src/util/http/proxy_manager.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crates/shirabe/src/util/http/proxy_manager.rs b/crates/shirabe/src/util/http/proxy_manager.rs index 319a2c4..e2838e6 100644 --- a/crates/shirabe/src/util/http/proxy_manager.rs +++ b/crates/shirabe/src/util/http/proxy_manager.rs @@ -45,9 +45,15 @@ impl ProxyManager { self.http_proxy.is_some() || self.https_proxy.is_some() } - pub fn get_proxy_for_request(&self, request_url: &str) -> Result<RequestProxy, TransportException> { + pub fn get_proxy_for_request( + &self, + request_url: &str, + ) -> Result<RequestProxy, TransportException> { if let Some(ref error) = self.error { - return Err(TransportException::new(format!("Unable to use a proxy: {}", error))); + return Err(TransportException::new(format!( + "Unable to use a proxy: {}", + error + ))); } let scheme = request_url.split("://").next().unwrap_or("").to_string(); |
