From f31b101ce1e921a026ba234b1f0a83b0392bc118 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 20 May 2026 08:33:49 +0900 Subject: fix(compile): fix all remaining compile errors Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/shirabe/src/command/audit_command.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/shirabe/src/command/audit_command.rs') diff --git a/crates/shirabe/src/command/audit_command.rs b/crates/shirabe/src/command/audit_command.rs index 1ced26a..052bf0b 100644 --- a/crates/shirabe/src/command/audit_command.rs +++ b/crates/shirabe/src/command/audit_command.rs @@ -51,8 +51,8 @@ impl AuditCommand { input: &dyn InputInterface, _output: &dyn OutputInterface, ) -> Result { - let composer = self.require_composer(None, None)?; - let packages = self.get_packages(&composer, input)?; + let mut composer = self.require_composer(None, None)?; + let packages = self.get_packages(&mut composer, input)?; if packages.is_empty() { self.get_io().write_error("No packages - skipping audit."); @@ -139,17 +139,17 @@ impl AuditCommand { fn get_packages( &self, - composer: &Composer, + composer: &mut Composer, input: &dyn InputInterface, ) -> Result>> { if input.get_option("locked").as_bool().unwrap_or(false) { - if !composer.get_locker().is_locked() { + let locker = composer.get_locker_mut(); + if !locker.is_locked() { return Err(UnexpectedValueException { message: "Valid composer.json and composer.lock files are required to run this command with --locked".to_string(), code: 0, }.into()); } - let locker = composer.get_locker(); return Ok(CanonicalPackagesTrait::get_packages( &locker.get_locked_repository( !input.get_option("no-dev").as_bool().unwrap_or(false), -- cgit v1.3.1