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/svn_downloader.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crates/shirabe/src/downloader/svn_downloader.rs') diff --git a/crates/shirabe/src/downloader/svn_downloader.rs b/crates/shirabe/src/downloader/svn_downloader.rs index 6abe3ddf..99a5bfe6 100644 --- a/crates/shirabe/src/downloader/svn_downloader.rs +++ b/crates/shirabe/src/downloader/svn_downloader.rs @@ -16,9 +16,9 @@ use crate::util::ProcessExecutor; use crate::util::Svn as SvnUtil; use indexmap::IndexMap; use shirabe_external_packages::composer::pcre::{CaptureKey, Preg}; -use shirabe_php_shim::{PhpMixed, RuntimeException, is_dir, php_regex, version_compare}; - -shirabe_php_shim::impl_php_class!(SvnDownloader, r"Composer\Downloader\SvnDownloader"); +use shirabe_php_shim::{ + PhpMixed, RuntimeException, impl_php_class, is_dir, php_regex, version_compare, +}; #[derive(Debug)] pub struct SvnDownloader { @@ -26,6 +26,8 @@ pub struct SvnDownloader { pub(crate) cache_credentials: std::cell::Cell, } +impl_php_class!(SvnDownloader, r"Composer\Downloader\SvnDownloader"); + impl SvnDownloader { pub fn new( io: std::rc::Rc>, -- cgit v1.3.1