From c839244d8d09f3036ebfee8eef7eb6b147e593ab Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 00:10:22 +0900 Subject: fix(compile): fix various compile errors Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe/src/util/http_downloader.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'crates/shirabe/src/util/http_downloader.rs') diff --git a/crates/shirabe/src/util/http_downloader.rs b/crates/shirabe/src/util/http_downloader.rs index 34f0642..97b1f6e 100644 --- a/crates/shirabe/src/util/http_downloader.rs +++ b/crates/shirabe/src/util/http_downloader.rs @@ -148,7 +148,7 @@ impl HttpDownloader { 1, min( 50, - max_jobs_env.as_string().unwrap_or("0").parse().unwrap_or(0), + max_jobs_env.as_deref().unwrap_or("0").parse().unwrap_or(0), ), ); } @@ -372,9 +372,10 @@ impl HttpDownloader { }); let canceler: Box = Box::new(|| { // PHP canceler logic — TODO(phase-b) - let _ = IrrecoverableDownloadException { - inner: TransportException::new("Download canceled".to_string(), 0), - }; + let _ = IrrecoverableDownloadException(shirabe_php_shim::RuntimeException { + message: "Download canceled".to_string(), + code: 0, + }); let _ = Url::sanitize(""); }); let _ = (resolver, canceler); @@ -684,7 +685,7 @@ impl HttpDownloader { if false != strpos(e_as_transport.get_message(), "Resolving timed out").is_some() || false != strpos(e_as_transport.get_message(), "Could not resolve host").is_some() { - Silencer::suppress(); + Silencer::suppress(None); let mut ctx_options: IndexMap = IndexMap::new(); let mut ssl_map: IndexMap> = IndexMap::new(); ssl_map.insert("verify_peer".to_string(), Box::new(PhpMixed::Bool(false))); -- cgit v1.3.1