crypto: Allow some test methods to be dead code since macOS can't use them.
parent
75fa7e97f9
commit
b0de9d1809
|
@ -82,6 +82,7 @@ impl Sas {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn set_creation_time(&self, time: Instant) {
|
||||
self.inner.lock().unwrap().set_creation_time(time)
|
||||
}
|
||||
|
@ -363,6 +364,7 @@ impl InnerSas {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[allow(dead_code)]
|
||||
fn set_creation_time(&mut self, time: Instant) {
|
||||
match self {
|
||||
InnerSas::Created(s) => s.set_creation_time(time),
|
||||
|
|
|
@ -260,6 +260,7 @@ impl<S: Clone> SasState<S> {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[allow(dead_code)]
|
||||
pub fn set_creation_time(&mut self, time: Instant) {
|
||||
self.creation_time = Arc::new(time);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue