mirror of https://github.com/astral-sh/uv
Fix unused code warning around `entry_from_constructor` (#15525)
This commit is contained in:
parent
39537f4372
commit
439395dadf
|
|
@ -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>,
|
||||
|
|
|
|||
|
|
@ -331,6 +331,7 @@ pub fn decode_error(err: Error) -> ErrorCode {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "keyring-tests")]
|
||||
#[cfg(not(miri))]
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
|
|
|||
Loading…
Reference in New Issue