From 5e31fa33c3b5cf726a57a063b8e7a070869250fe Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 21:46:01 +0900 Subject: fix(compile): fix more random compile errors Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/shirabe/src/installer/project_installer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/shirabe/src/installer/project_installer.rs') diff --git a/crates/shirabe/src/installer/project_installer.rs b/crates/shirabe/src/installer/project_installer.rs index f8b0bba..906e2c0 100644 --- a/crates/shirabe/src/installer/project_installer.rs +++ b/crates/shirabe/src/installer/project_installer.rs @@ -12,14 +12,14 @@ use shirabe_php_shim::InvalidArgumentException; pub struct ProjectInstaller { install_path: String, download_manager: std::rc::Rc>, - filesystem: Filesystem, + filesystem: std::rc::Rc>, } impl ProjectInstaller { pub fn new( install_path: &str, dm: std::rc::Rc>, - fs: Filesystem, + fs: std::rc::Rc>, ) -> Self { let install_path = format!("{}/", install_path.replace('\\', "/").trim_end_matches('/')); Self { @@ -50,7 +50,7 @@ impl InstallerInterface for ProjectInstaller { ) -> anyhow::Result>> { let install_path = &self.install_path; if std::path::Path::new(install_path).exists() - && !self.filesystem.is_dir_empty(install_path) + && !self.filesystem.borrow().is_dir_empty(install_path) { return Err(InvalidArgumentException { message: format!("Project directory {} is not empty.", install_path), -- cgit v1.3.1