diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index 2197bfbf..1d68fc47 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -67,6 +67,7 @@ pub struct Client { pub(crate) base_client: BaseClient, } +#[cfg_attr(tarpaulin, skip)] impl std::fmt::Debug for Client { fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> StdResult<(), std::fmt::Error> { write!(fmt, "Client {{ homeserver: {} }}", self.homeserver) @@ -106,6 +107,7 @@ pub struct ClientConfig { state_store: Option>, } +#[cfg_attr(tarpaulin, skip)] impl std::fmt::Debug for ClientConfig { fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> StdResult<(), std::fmt::Error> { let mut res = fmt.debug_struct("ClientConfig"); diff --git a/matrix_sdk_base/src/client.rs b/matrix_sdk_base/src/client.rs index 9c9e7de0..45b42959 100644 --- a/matrix_sdk_base/src/client.rs +++ b/matrix_sdk_base/src/client.rs @@ -122,6 +122,7 @@ pub struct BaseClient { olm: Arc>>, } +#[cfg_attr(tarpaulin, skip)] impl fmt::Debug for BaseClient { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("Client")