aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/downloader/rar_downloader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/downloader/rar_downloader.rs')
-rw-r--r--crates/shirabe/src/downloader/rar_downloader.rs7
1 files changed, 4 insertions, 3 deletions
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<IndexMap<String, bool>>,
}
+impl_php_class!(RarDownloader, r"Composer\Downloader\RarDownloader");
+
impl RarDownloader {
pub fn new(
io: std::rc::Rc<std::cell::RefCell<dyn IOInterface>>,