From 7439cdb08afe0882186a34f70c1e8878fcb7dca5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 8 Jun 2026 04:30:56 +0900 Subject: feat(phase-c): resolve static-property phase-b TODOs Implement the FileDownloader::$downloadMetadata accessors over the existing DOWNLOAD_METADATA static, and drop now-stale TODOs on the already-correct Platform::strlen function-local static and the ClassLoader include-closure no-op. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/downloader/file_downloader.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'crates/shirabe/src/downloader') diff --git a/crates/shirabe/src/downloader/file_downloader.rs b/crates/shirabe/src/downloader/file_downloader.rs index 9840cef..54b0882 100644 --- a/crates/shirabe/src/downloader/file_downloader.rs +++ b/crates/shirabe/src/downloader/file_downloader.rs @@ -82,14 +82,12 @@ pub struct FileDownloader { } impl FileDownloader { - /// TODO(phase-b): `$downloadMetadata` is a static property in PHP; not yet mapped to Rust. pub fn reset_download_metadata() { - todo!("FileDownloader::reset_download_metadata") + DOWNLOAD_METADATA.lock().unwrap().clear(); } - /// TODO(phase-b): `$downloadMetadata` is a static property in PHP; not yet mapped to Rust. - pub fn download_metadata() -> indexmap::IndexMap { - todo!("FileDownloader::download_metadata") + pub fn download_metadata() -> IndexMap { + DOWNLOAD_METADATA.lock().unwrap().clone() } /// Constructor. -- cgit v1.3.1