fix(core): gate secret codec test helper to keyring builds
This commit is contained in:
1 file changed
+1
@@ -610,6 +610,7 @@ mod tests {
|
||||
LOCK.get_or_init(|| Mutex::new(()))
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "os-keyring", target_os = "linux"))]
|
||||
fn restore_env(name: &str, value: Option<std::ffi::OsString>) {
|
||||
if let Some(value) = value {
|
||||
std::env::set_var(name, value);
|
||||
|
||||
Reference in new issue
Block a user