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/platform_repository.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/repository/platform_repository.rs') diff --git a/crates/shirabe/src/repository/platform_repository.rs b/crates/shirabe/src/repository/platform_repository.rs index a35874d..1dec137 100644 --- a/crates/shirabe/src/repository/platform_repository.rs +++ b/crates/shirabe/src/repository/platform_repository.rs @@ -1939,13 +1939,11 @@ impl PlatformRepository { } } -impl shirabe_php_shim::Countable for PlatformRepository { - fn count(&self) -> i64 { +impl crate::repository::RepositoryInterface for PlatformRepository { + fn count(&self) -> anyhow::Result { self.inner.count() } -} -impl crate::repository::RepositoryInterface for PlatformRepository { fn has_package(&self, package: PackageInterfaceHandle) -> bool { self.inner.has_package(package) } -- cgit v1.3.1