fix(core): gate secret codec test helper to keyring builds

This commit is contained in:
t8y2 committed 2026-09-30 02:57:26 +08:00
1 parent 13c3f8205c
commit d939959341
1 file changed
+1
@@ -610,6 +610,7 @@ mod tests {
LOCK.get_or_init(|| Mutex::new(())) LOCK.get_or_init(|| Mutex::new(()))
} }
#[cfg(all(feature = "os-keyring", target_os = "linux"))]
fn restore_env(name: &str, value: Option<std::ffi::OsString>) { fn restore_env(name: &str, value: Option<std::ffi::OsString>) {
if let Some(value) = value { if let Some(value) = value {
std::env::set_var(name, value); std::env::set_var(name, value);