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;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
/// Create a platform-specific credential given the constructor, service, and user
|
/// 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
|
pub(crate) fn entry_from_constructor<F, T>(f: F, service: &str, user: &str) -> Entry
|
||||||
where
|
where
|
||||||
F: FnOnce(Option<&str>, &str, &str) -> Result<T>,
|
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(not(miri))]
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue