From 676d5471610e4c7537c7b8b8f2baa7031be1e436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 24 Jun 2020 11:25:31 +0200 Subject: [PATCH] matrix-sdk: Disable the tarpaulin skip lines since it fails to run with them. --- matrix_sdk/src/client.rs | 4 ++-- matrix_sdk_base/src/client.rs | 4 ++-- matrix_sdk_crypto/src/machine.rs | 2 +- matrix_sdk_crypto/src/olm.rs | 10 +++++----- matrix_sdk_crypto/src/store/sqlite.rs | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index 087d3db6..27d4c3ee 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -66,7 +66,7 @@ pub struct Client { pub(crate) base_client: BaseClient, } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl Debug for Client { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> StdResult<(), fmt::Error> { write!(fmt, "Client {{ homeserver: {} }}", self.homeserver) @@ -106,7 +106,7 @@ pub struct ClientConfig { base_config: BaseClientConfig, } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl Debug for ClientConfig { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { let mut res = fmt.debug_struct("ClientConfig"); diff --git a/matrix_sdk_base/src/client.rs b/matrix_sdk_base/src/client.rs index 692285fd..fac9e3ac 100644 --- a/matrix_sdk_base/src/client.rs +++ b/matrix_sdk_base/src/client.rs @@ -205,7 +205,7 @@ pub struct BaseClient { store_passphrase: Arc>, } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl fmt::Debug for BaseClient { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("Client") @@ -239,7 +239,7 @@ pub struct BaseClientConfig { passphrase: Option>, } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl std::fmt::Debug for BaseClientConfig { fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> StdResult<(), std::fmt::Error> { fmt.debug_struct("BaseClientConfig").finish() diff --git a/matrix_sdk_crypto/src/machine.rs b/matrix_sdk_crypto/src/machine.rs index f4deca84..9ec72b04 100644 --- a/matrix_sdk_crypto/src/machine.rs +++ b/matrix_sdk_crypto/src/machine.rs @@ -84,7 +84,7 @@ pub struct OlmMachine { outbound_group_sessions: HashMap, } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl std::fmt::Debug for OlmMachine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.debug_struct("OlmMachine") diff --git a/matrix_sdk_crypto/src/olm.rs b/matrix_sdk_crypto/src/olm.rs index 8847442a..ffb8abf9 100644 --- a/matrix_sdk_crypto/src/olm.rs +++ b/matrix_sdk_crypto/src/olm.rs @@ -48,7 +48,7 @@ pub struct Account { shared: Arc, } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl fmt::Debug for Account { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("Account") @@ -58,7 +58,7 @@ impl fmt::Debug for Account { } } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl Default for Account { fn default() -> Self { Self::new() @@ -253,7 +253,7 @@ pub struct Session { pub(crate) last_use_time: Arc, } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl fmt::Debug for Session { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("Session") @@ -502,7 +502,7 @@ impl InboundGroupSession { } } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl fmt::Debug for InboundGroupSession { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("InboundGroupSession") @@ -611,7 +611,7 @@ impl OutboundGroupSession { } } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl std::fmt::Debug for OutboundGroupSession { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("OutboundGroupSession") diff --git a/matrix_sdk_crypto/src/store/sqlite.rs b/matrix_sdk_crypto/src/store/sqlite.rs index d88fee64..0eefae7a 100644 --- a/matrix_sdk_crypto/src/store/sqlite.rs +++ b/matrix_sdk_crypto/src/store/sqlite.rs @@ -772,7 +772,7 @@ impl CryptoStore for SqliteStore { } } -#[cfg_attr(tarpaulin, skip)] +// #[cfg_attr(tarpaulin, skip)] impl std::fmt::Debug for SqliteStore { fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> StdResult<(), std::fmt::Error> { fmt.debug_struct("SqliteStore")