From cf0e5510dc645038b91c6fcb77ff373cb2a57d49 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 20 Jun 2026 02:36:54 +0900 Subject: feat: resolve trivial todo!() placeholders Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/command/require_command.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/command') diff --git a/crates/shirabe/src/command/require_command.rs b/crates/shirabe/src/command/require_command.rs index 31d345a..3d8331b 100644 --- a/crates/shirabe/src/command/require_command.rs +++ b/crates/shirabe/src/command/require_command.rs @@ -65,6 +65,8 @@ pub struct RequireCommand { /// contents before modification if the lock file exists lock_backup: Option, dependency_resolution_completed: bool, + repos: Option, + repository_sets: IndexMap>>, } impl Default for RequireCommand { @@ -85,6 +87,8 @@ impl RequireCommand { lock: String::new(), lock_backup: None, dependency_resolution_completed: false, + repos: None, + repository_sets: IndexMap::new(), }; command .configure() @@ -95,13 +99,13 @@ impl RequireCommand { impl PackageDiscoveryTrait for RequireCommand { fn get_repos_mut(&mut self) -> &mut Option { - todo!() + &mut self.repos } fn get_repository_sets_mut( &mut self, ) -> &mut IndexMap>> { - todo!() + &mut self.repository_sets } fn get_io(&self) -> std::rc::Rc> { -- cgit v1.3.1