From e7f83b74e8f8c12b4a1b0f9f613387b03858dbdd Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 7 Aug 2026 07:15:08 +0900 Subject: chore: use shirabe_php_shim::impl_php_class --- crates/shirabe/src/downloader/rar_downloader.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crates/shirabe/src/downloader/rar_downloader.rs') diff --git a/crates/shirabe/src/downloader/rar_downloader.rs b/crates/shirabe/src/downloader/rar_downloader.rs index 645a5247..ee0148c7 100644 --- a/crates/shirabe/src/downloader/rar_downloader.rs +++ b/crates/shirabe/src/downloader/rar_downloader.rs @@ -15,17 +15,18 @@ use crate::util::Platform; use crate::util::ProcessExecutor; use indexmap::IndexMap; use shirabe_php_shim::{ - PhpMixed, RarArchive, RuntimeException, UnexpectedValueException, class_exists, implode, + PhpMixed, RarArchive, RuntimeException, UnexpectedValueException, class_exists, impl_php_class, + implode, }; -shirabe_php_shim::impl_php_class!(RarDownloader, r"Composer\Downloader\RarDownloader"); - #[derive(Debug)] pub struct RarDownloader { inner: FileDownloader, cleanup_executed: std::cell::RefCell>, } +impl_php_class!(RarDownloader, r"Composer\Downloader\RarDownloader"); + impl RarDownloader { pub fn new( io: std::rc::Rc>, -- cgit v1.3.1