Fix unused code warning around `entry_from_constructor` (#15525)

This commit is contained in:
konsti 2025-08-26 13:30:46 +02:00 committed by GitHub
parent 39537f4372
commit 439395dadf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -410,6 +410,7 @@ mod tests {
use std::collections::HashMap;
/// Create a platform-specific credential given the constructor, service, and user
#[cfg(feature = "keyring-tests")]
pub(crate) fn entry_from_constructor<F, T>(f: F, service: &str, user: &str) -> Entry
where
F: FnOnce(Option<&str>, &str, &str) -> Result<T>,

View File

@ -331,6 +331,7 @@ pub fn decode_error(err: Error) -> ErrorCode {
}
}
#[cfg(feature = "keyring-tests")]
#[cfg(not(miri))]
#[cfg(test)]
mod tests {