diff --git a/matrix_sdk_crypto/src/verification/sas/mod.rs b/matrix_sdk_crypto/src/verification/sas/mod.rs index af8ee134..b5bc0208 100644 --- a/matrix_sdk_crypto/src/verification/sas/mod.rs +++ b/matrix_sdk_crypto/src/verification/sas/mod.rs @@ -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), diff --git a/matrix_sdk_crypto/src/verification/sas/sas_state.rs b/matrix_sdk_crypto/src/verification/sas/sas_state.rs index 1629ae85..d5e0ccb4 100644 --- a/matrix_sdk_crypto/src/verification/sas/sas_state.rs +++ b/matrix_sdk_crypto/src/verification/sas/sas_state.rs @@ -260,6 +260,7 @@ impl SasState { } #[cfg(test)] + #[allow(dead_code)] pub fn set_creation_time(&mut self, time: Instant) { self.creation_time = Arc::new(time); }