From b15166490944e90c083c93086e849656535494e3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 20 Jun 2026 20:49:33 +0900 Subject: fix(path): propagate PathBuf Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/downloader/file_downloader.rs | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'crates/shirabe/src/downloader/file_downloader.rs') diff --git a/crates/shirabe/src/downloader/file_downloader.rs b/crates/shirabe/src/downloader/file_downloader.rs index 4c30f9e..702a58f 100644 --- a/crates/shirabe/src/downloader/file_downloader.rs +++ b/crates/shirabe/src/downloader/file_downloader.rs @@ -8,9 +8,9 @@ use std::sync::{LazyLock, Mutex}; use crate::util::Silencer; use shirabe_php_shim::{ DIRECTORY_SEPARATOR, InvalidArgumentException, PATHINFO_BASENAME, PATHINFO_EXTENSION, - PHP_URL_PATH, PhpMixed, RuntimeException, UnexpectedValueException, array_search, array_shift, - file_exists, filesize, get_class, hash, hash_file, in_array, is_dir, is_executable, parse_url, - pathinfo, realpath, rtrim, spl_object_hash, strlen, strpos, strtr, trim, umask, usleep, + PHP_URL_PATH, PhpMixed, RuntimeException, UnexpectedValueException, array_search, file_exists, + filesize, get_class, hash, hash_file, in_array, is_dir, is_executable, parse_url, pathinfo, + realpath, rtrim, spl_object_hash, strlen, strpos, strtr, trim, umask, usleep, }; use crate::cache::Cache; @@ -801,17 +801,3 @@ struct UrlEntry { processed: String, cache_key: String, } - -// Suppress unused-import warnings for items kept for parity with the PHP source. -#[allow(dead_code)] -fn _use_parity() { - let _ = filesize; - let _ = hash_file; - let _ = in_array; - let _ = usleep; - let _ = array_shift::; - let _ = UnexpectedValueException { - message: String::new(), - code: 0, - }; -} -- cgit v1.3.1