From b0de9d18092086d90aaa1dafbe169e15fb94e395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 14 Aug 2020 15:04:59 +0200 Subject: [PATCH] crypto: Allow some test methods to be dead code since macOS can't use them. --- matrix_sdk_crypto/src/verification/sas/mod.rs | 2 ++ matrix_sdk_crypto/src/verification/sas/sas_state.rs | 1 + 2 files changed, 3 insertions(+) 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); }