aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/update_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/update_command.rs')
-rw-r--r--crates/shirabe/src/command/update_command.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/shirabe/src/command/update_command.rs b/crates/shirabe/src/command/update_command.rs
index 06984e2..f879283 100644
--- a/crates/shirabe/src/command/update_command.rs
+++ b/crates/shirabe/src/command/update_command.rs
@@ -77,8 +77,9 @@ impl UpdateCommand {
) -> Result<i64> {
// TODO(phase-b): clone_box avoids the &mut self conflict with require_composer
// below; revisit when get_io can return an Rc/Arc owned handle.
- let io_box = self.get_io().clone_box();
- let io: &dyn IOInterface = &*io_box;
+ let io_box = self.get_io().clone();
+ let io_ref = io_box.borrow();
+ let io: &dyn IOInterface = &*io_ref;
if input.get_option("dev").as_bool().unwrap_or(false) {
io.write_error3(
"<warning>You are using the deprecated option \"--dev\". It has no effect and will break in Composer 3.</warning>",
@@ -311,7 +312,7 @@ impl UpdateCommand {
.borrow_mut()
.set_output_progress(!input.get_option("no-progress").as_bool().unwrap_or(false));
- let mut install = Installer::create(io.clone_box(), &composer_handle);
+ let mut install = Installer::create(io_box.clone(), &composer_handle);
let config = composer.get_config();
let (prefer_source, prefer_dist) =