crypto: Allow some test methods to be dead code since macOS can't use them.

master
Damir Jelić 2020-08-14 15:04:59 +02:00
parent 75fa7e97f9
commit b0de9d1809
2 changed files with 3 additions and 0 deletions

View File

@ -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),

View File

@ -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);
}