From e583112899cbea7494ffdd73d7de380dd5f808c4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 10 Jun 2026 00:54:22 +0900 Subject: feat(phase-c): resolve exception-handling phase-b TODOs * Catch specific exception types instead of broad/placeholder handling. * Drop the shim Countable trait. --- crates/shirabe/src/repository/installed_repository.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/repository/installed_repository.rs') diff --git a/crates/shirabe/src/repository/installed_repository.rs b/crates/shirabe/src/repository/installed_repository.rs index 8b611ae..f6b9643 100644 --- a/crates/shirabe/src/repository/installed_repository.rs +++ b/crates/shirabe/src/repository/installed_repository.rs @@ -381,13 +381,11 @@ impl InstalledRepository { } } -impl shirabe_php_shim::Countable for InstalledRepository { - fn count(&self) -> i64 { +impl RepositoryInterface for InstalledRepository { + fn count(&self) -> anyhow::Result { self.inner.count() } -} -impl RepositoryInterface for InstalledRepository { fn get_repo_name(&self) -> String { let names: Vec = self .inner -- cgit v1.3.1