fix(core): gate collection path helper to keyring builds
This commit is contained in:
1 file changed
+1
@@ -442,6 +442,7 @@ fn secret_service_provider_is_missing(error: &str) -> bool {
|
|||||||
|| error.contains("no secret service provider or dbus session found")
|
|| 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<Item = &'a str>) -> bool {
|
fn collection_path_is_registered<'a>(path: &str, collection_paths: impl IntoIterator<Item = &'a str>) -> bool {
|
||||||
collection_paths.into_iter().any(|candidate| candidate == path)
|
collection_paths.into_iter().any(|candidate| candidate == path)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user