matrix-sdk: Don't require coverage for some debug implementations.
parent
77973f15ba
commit
8c6c34e01a
|
@ -67,6 +67,7 @@ pub struct Client {
|
||||||
pub(crate) base_client: BaseClient,
|
pub(crate) base_client: BaseClient,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(tarpaulin, skip)]
|
||||||
impl std::fmt::Debug for Client {
|
impl std::fmt::Debug for Client {
|
||||||
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> StdResult<(), std::fmt::Error> {
|
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> StdResult<(), std::fmt::Error> {
|
||||||
write!(fmt, "Client {{ homeserver: {} }}", self.homeserver)
|
write!(fmt, "Client {{ homeserver: {} }}", self.homeserver)
|
||||||
|
@ -106,6 +107,7 @@ pub struct ClientConfig {
|
||||||
state_store: Option<Box<dyn StateStore>>,
|
state_store: Option<Box<dyn StateStore>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(tarpaulin, skip)]
|
||||||
impl std::fmt::Debug for ClientConfig {
|
impl std::fmt::Debug for ClientConfig {
|
||||||
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> StdResult<(), std::fmt::Error> {
|
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> StdResult<(), std::fmt::Error> {
|
||||||
let mut res = fmt.debug_struct("ClientConfig");
|
let mut res = fmt.debug_struct("ClientConfig");
|
||||||
|
|
|
@ -122,6 +122,7 @@ pub struct BaseClient {
|
||||||
olm: Arc<Mutex<Option<OlmMachine>>>,
|
olm: Arc<Mutex<Option<OlmMachine>>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(tarpaulin, skip)]
|
||||||
impl fmt::Debug for BaseClient {
|
impl fmt::Debug for BaseClient {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
f.debug_struct("Client")
|
f.debug_struct("Client")
|
||||||
|
|
Loading…
Reference in New Issue