Skip to content

Commit 7ec384c

Browse files
andybalaampoljar
authored andcommitted
fix: Fix incorrect debug_struct calls in several places
1 parent 7466f77 commit 7ec384c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

crates/matrix-sdk-base/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub struct BaseClient {
129129
#[cfg(not(tarpaulin_include))]
130130
impl fmt::Debug for BaseClient {
131131
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
132-
f.debug_struct("Client")
132+
f.debug_struct("BaseClient")
133133
.field("session_meta", &self.store.session_meta())
134134
.field("sync_token", &self.store.sync_token)
135135
.finish_non_exhaustive()

crates/matrix-sdk-base/src/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl RoomUpdates {
102102
#[cfg(not(tarpaulin_include))]
103103
impl fmt::Debug for RoomUpdates {
104104
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
105-
f.debug_struct("Rooms")
105+
f.debug_struct("RoomUpdates")
106106
.field("leave", &self.leave)
107107
.field("join", &self.join)
108108
.field("invite", &DebugInvitedRoomUpdates(&self.invite))
@@ -138,7 +138,7 @@ pub struct JoinedRoomUpdate {
138138
#[cfg(not(tarpaulin_include))]
139139
impl fmt::Debug for JoinedRoomUpdate {
140140
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
141-
f.debug_struct("JoinedRoom")
141+
f.debug_struct("JoinedRoomUpdate")
142142
.field("unread_notifications", &self.unread_notifications)
143143
.field("timeline", &self.timeline)
144144
.field("state", &DebugListOfRawEvents(&self.state))

crates/matrix-sdk-crypto/src/types/events/room_key_withheld.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ pub struct NoOlmWithheldContent {
264264
#[cfg(not(tarpaulin_include))]
265265
impl std::fmt::Debug for CommonWithheldCodeContent {
266266
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
267-
f.debug_struct("AnyWithheldContent")
267+
f.debug_struct("CommonWithheldCodeContent")
268268
.field("room_id", &self.room_id)
269269
.field("session_id", &self.session_id)
270270
.field("sender_key", &self.sender_key)

crates/matrix-sdk/src/oidc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ pub struct OidcSessionTokens {
15851585
#[cfg(not(tarpaulin_include))]
15861586
impl fmt::Debug for OidcSessionTokens {
15871587
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1588-
f.debug_struct("SessionTokens").finish_non_exhaustive()
1588+
f.debug_struct("OidcSessionTokens").finish_non_exhaustive()
15891589
}
15901590
}
15911591

0 commit comments

Comments
 (0)