From 14f25bf66a597e927d5217c2243e1eb5db19609f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 15 Apr 2020 18:22:04 +0200 Subject: [PATCH] crypto: Skip the coverage for debug implementations. --- src/crypto/olm.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto/olm.rs b/src/crypto/olm.rs index 8d160bbd..3dff2085 100644 --- a/src/crypto/olm.rs +++ b/src/crypto/olm.rs @@ -42,6 +42,7 @@ pub struct Account { shared: Arc, } +#[cfg_attr(tarpaulin, skip)] impl fmt::Debug for Account { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("Account") @@ -241,6 +242,7 @@ pub struct Session { pub(crate) last_use_time: Arc, } +#[cfg_attr(tarpaulin, skip)] impl fmt::Debug for Session { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("Session") @@ -489,6 +491,7 @@ impl InboundGroupSession { } } +#[cfg_attr(tarpaulin, skip)] impl fmt::Debug for InboundGroupSession { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("InboundGroupSession") @@ -597,6 +600,7 @@ impl OutboundGroupSession { } } +#[cfg_attr(tarpaulin, skip)] impl std::fmt::Debug for OutboundGroupSession { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("OutboundGroupSession")