From f411daceacad66e0bd774fda7d3c5ef8533cc55c Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 26 May 2026 20:04:02 +0900 Subject: refactor(io): share IOInterface via Rc> handle Co-Authored-By: Claude Opus 4.7 --- crates/shirabe/src/installer/binary_installer.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/installer/binary_installer.rs') diff --git a/crates/shirabe/src/installer/binary_installer.rs b/crates/shirabe/src/installer/binary_installer.rs index 54e1143..a555d83 100644 --- a/crates/shirabe/src/installer/binary_installer.rs +++ b/crates/shirabe/src/installer/binary_installer.rs @@ -10,6 +10,7 @@ use shirabe_php_shim::{ }; use crate::io::IOInterface; +use crate::io::IOInterfaceImmutable; use crate::package::PackageInterface; use crate::util::Filesystem; use crate::util::Platform; @@ -21,14 +22,14 @@ use crate::util::Silencer; pub struct BinaryInstaller { pub(crate) bin_dir: String, pub(crate) bin_compat: String, - pub(crate) io: Box, + pub(crate) io: std::rc::Rc>, pub(crate) filesystem: std::rc::Rc>, vendor_dir: Option, } impl BinaryInstaller { pub fn new( - io: Box, + io: std::rc::Rc>, bin_dir: String, bin_compat: String, filesystem: Option>>, -- cgit v1.3.1