From c839244d8d09f3036ebfee8eef7eb6b147e593ab Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 00:10:22 +0900 Subject: fix(compile): fix various compile errors Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe/src/repository/installed_repository.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 3b6563d..d0130f4 100644 --- a/crates/shirabe/src/repository/installed_repository.rs +++ b/crates/shirabe/src/repository/installed_repository.rs @@ -37,14 +37,16 @@ pub struct InstalledRepository { } impl InstalledRepository { - pub fn new(repositories: Vec>) -> anyhow::Result { + pub fn new(repositories: Vec>) -> Self { let mut this = Self { inner: CompositeRepository::new(vec![]), }; for repo in repositories { - this.add_repository(repo)?; + // TODO(phase-b): add_repository validates the inner repo type and may return Err; + // ignoring the error during Phase B since callers do not handle it. + let _ = this.add_repository(repo); } - Ok(this) + this } pub fn find_packages_with_replacers_and_providers( -- cgit v1.3.1