diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-07 07:15:08 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-07 07:15:08 +0900 |
| commit | e7f83b74e8f8c12b4a1b0f9f613387b03858dbdd (patch) | |
| tree | 37fba97742e2d16ff1494eba600da52a0aac9fcf /crates/shirabe/src/downloader/gzip_downloader.rs | |
| parent | 759b2980e70dfb8960238f75d68bb6dddce25414 (diff) | |
| download | php-shirabe-e7f83b74e8f8c12b4a1b0f9f613387b03858dbdd.tar.gz php-shirabe-e7f83b74e8f8c12b4a1b0f9f613387b03858dbdd.tar.zst php-shirabe-e7f83b74e8f8c12b4a1b0f9f613387b03858dbdd.zip | |
chore: use shirabe_php_shim::impl_php_class
Diffstat (limited to 'crates/shirabe/src/downloader/gzip_downloader.rs')
| -rw-r--r-- | crates/shirabe/src/downloader/gzip_downloader.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe/src/downloader/gzip_downloader.rs b/crates/shirabe/src/downloader/gzip_downloader.rs index ff7962e0..b0494479 100644 --- a/crates/shirabe/src/downloader/gzip_downloader.rs +++ b/crates/shirabe/src/downloader/gzip_downloader.rs @@ -15,18 +15,18 @@ use crate::util::ProcessExecutor; use indexmap::IndexMap; use shirabe_php_shim::{ DIRECTORY_SEPARATOR, PATHINFO_FILENAME, PHP_URL_PATH, PhpMixed, RuntimeException, - extension_loaded, fclose, fopen, fwrite, gzclose, gzopen, gzread, implode, parse_url, pathinfo, - strtr, + extension_loaded, fclose, fopen, fwrite, gzclose, gzopen, gzread, impl_php_class, implode, + parse_url, pathinfo, strtr, }; -shirabe_php_shim::impl_php_class!(GzipDownloader, r"Composer\Downloader\GzipDownloader"); - #[derive(Debug)] pub struct GzipDownloader { inner: FileDownloader, cleanup_executed: std::cell::RefCell<IndexMap<String, bool>>, } +impl_php_class!(GzipDownloader, r"Composer\Downloader\GzipDownloader"); + impl GzipDownloader { pub fn new( io: std::rc::Rc<std::cell::RefCell<dyn IOInterface>>, |
