From d9b6d44d9da706430cc932afca065e3e649329f6 Mon Sep 17 00:00:00 2001 From: t8y2 Date: Wed, 30 Sep 2026 02:24:40 +0800 Subject: [PATCH] fix(core): gate collection path helper to keyring builds --- crates/dbx-core/src/persistence/secret_codec.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/dbx-core/src/persistence/secret_codec.rs b/crates/dbx-core/src/persistence/secret_codec.rs index 8fb9a02135..212016128d 100644 --- a/crates/dbx-core/src/persistence/secret_codec.rs +++ b/crates/dbx-core/src/persistence/secret_codec.rs @@ -442,6 +442,7 @@ fn secret_service_provider_is_missing(error: &str) -> bool { || error.contains("no secret service provider or dbus session found") } +#[cfg(any(test, all(feature = "os-keyring", target_os = "linux")))] fn collection_path_is_registered<'a>(path: &str, collection_paths: impl IntoIterator) -> bool { collection_paths.into_iter().any(|candidate| candidate == path) }