matrix-sdk: Don't require coverage for some debug implementations.

master
Damir Jelić 2020-05-14 15:26:22 +02:00
parent 77973f15ba
commit 8c6c34e01a
2 changed files with 3 additions and 0 deletions

View File

@ -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<Box<dyn StateStore>>,
}
#[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");

View File

@ -122,6 +122,7 @@ pub struct BaseClient {
olm: Arc<Mutex<Option<OlmMachine>>>,
}
#[cfg_attr(tarpaulin, skip)]
impl fmt::Debug for BaseClient {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Client")