From 3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 14:33:13 +0900 Subject: fix(compile): extract constants from traits to make them dyn-compatible --- crates/shirabe/src/repository/repository_interface.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/repository/repository_interface.rs') diff --git a/crates/shirabe/src/repository/repository_interface.rs b/crates/shirabe/src/repository/repository_interface.rs index 15c85f0..777d3f6 100644 --- a/crates/shirabe/src/repository/repository_interface.rs +++ b/crates/shirabe/src/repository/repository_interface.rs @@ -35,11 +35,11 @@ pub struct ProviderInfo { pub r#type: String, } -pub trait RepositoryInterface: Countable { - const SEARCH_FULLTEXT: i64 = 0; - const SEARCH_NAME: i64 = 1; - const SEARCH_VENDOR: i64 = 2; +pub const SEARCH_FULLTEXT: i64 = 0; +pub const SEARCH_NAME: i64 = 1; +pub const SEARCH_VENDOR: i64 = 2; +pub trait RepositoryInterface: Countable { fn has_package(&self, package: &dyn PackageInterface) -> bool; fn find_package( -- cgit v1.3.1