Skip to content

Commit

Permalink
fix: Fix incorrect debug_struct calls in several places
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Jan 8, 2025
1 parent dc2775e commit ec11658
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-base/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub struct BaseClient {
#[cfg(not(tarpaulin_include))]
impl fmt::Debug for BaseClient {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Client")
f.debug_struct("BaseClient")
.field("session_meta", &self.store.session_meta())
.field("sync_token", &self.store.sync_token)
.finish_non_exhaustive()
Expand Down
4 changes: 2 additions & 2 deletions crates/matrix-sdk-base/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl RoomUpdates {
#[cfg(not(tarpaulin_include))]
impl fmt::Debug for RoomUpdates {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Rooms")
f.debug_struct("RoomUpdates")
.field("leave", &self.leave)
.field("join", &self.join)
.field("invite", &DebugInvitedRoomUpdates(&self.invite))
Expand Down Expand Up @@ -138,7 +138,7 @@ pub struct JoinedRoomUpdate {
#[cfg(not(tarpaulin_include))]
impl fmt::Debug for JoinedRoomUpdate {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("JoinedRoom")
f.debug_struct("JoinedRoomUpdate")
.field("unread_notifications", &self.unread_notifications)
.field("timeline", &self.timeline)
.field("state", &DebugListOfRawEvents(&self.state))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub struct NoOlmWithheldContent {
#[cfg(not(tarpaulin_include))]
impl std::fmt::Debug for CommonWithheldCodeContent {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("AnyWithheldContent")
f.debug_struct("CommonWithheldCodeContent")
.field("room_id", &self.room_id)
.field("session_id", &self.session_id)
.field("sender_key", &self.sender_key)
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk/src/oidc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ pub struct OidcSessionTokens {
#[cfg(not(tarpaulin_include))]
impl fmt::Debug for OidcSessionTokens {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("SessionTokens").finish_non_exhaustive()
f.debug_struct("OidcSessionTokens").finish_non_exhaustive()
}
}

Expand Down

0 comments on commit ec11658

Please sign in to comment.