Skip to content

Commit d97d08e

Browse files
committed
Remove event payload display helpers
1 parent ea4fb3f commit d97d08e

5 files changed

Lines changed: 0 additions & 60 deletions

File tree

src/audio.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,6 @@ fn non_empty(value: String) -> Option<String> {
129129
(!value.is_empty()).then_some(value)
130130
}
131131

132-
impl std::fmt::Display for Audio {
133-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
134-
write!(
135-
f,
136-
"Audio {{ channel_id: {:?}, guild_id: {:?}, audio_url: {:?}, text: {:?}, event_id: {:?} }}",
137-
self.channel_id, self.guild_id, self.audio_url, self.text, self.event_id
138-
)
139-
}
140-
}
141-
142132
/// Public audio event data structure for live channels
143133
#[derive(Debug, Clone, Serialize)]
144134
pub struct PublicAudio {
@@ -177,16 +167,6 @@ impl PublicAudio {
177167
}
178168
}
179169

180-
impl std::fmt::Display for PublicAudio {
181-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
182-
write!(
183-
f,
184-
"PublicAudio {{ guild_id: {:?}, channel_id: {:?}, channel_type: {:?}, user_id: {:?} }}",
185-
self.guild_id, self.channel_id, self.channel_type, self.user_id
186-
)
187-
}
188-
}
189-
190170
#[cfg(test)]
191171
mod tests {
192172
use super::*;

src/forum/events.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,6 @@ impl Thread {
123123
}
124124
}
125125

126-
impl std::fmt::Display for Thread {
127-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
128-
write!(
129-
f,
130-
"Thread {{ channel_id: {:?}, guild_id: {:?}, author_id: {:?}, event_id: {:?} }}",
131-
self.channel_id, self.guild_id, self.author_id, self.event_id
132-
)
133-
}
134-
}
135-
136126
/// Forum post structure.
137127
#[derive(Debug, Clone, Serialize)]
138128
pub struct Post {

src/forum/open.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,3 @@ impl OpenThread {
8787
}
8888
}
8989
}
90-
91-
impl std::fmt::Display for OpenThread {
92-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
93-
write!(
94-
f,
95-
"OpenThread {{ channel_id: {:?}, guild_id: {:?}, author_id: {:?}, event_id: {:?} }}",
96-
self.channel_id, self.guild_id, self.author_id, self.event_id
97-
)
98-
}
99-
}

src/interaction/model.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,6 @@ impl Interaction {
7373
}
7474
}
7575

76-
impl std::fmt::Display for Interaction {
77-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
78-
write!(
79-
f,
80-
"Interaction {{ id: {:?}, type: {:?}, scene: {:?}, chat_type: {:?}, event_id: {:?} }}",
81-
self.id, self.interaction_type, self.scene, self.chat_type, self.event_id
82-
)
83-
}
84-
}
85-
8676
#[derive(Debug, Default, Deserialize)]
8777
struct InteractionWire {
8878
#[serde(default)]

src/reaction/model.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,3 @@ impl Reaction {
4444
}
4545
}
4646
}
47-
48-
impl std::fmt::Display for Reaction {
49-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
50-
write!(
51-
f,
52-
"Reaction {{ user_id: {}, channel_id: {}, guild_id: {}, target_type: {:?}, event_id: {:?} }}",
53-
self.user_id, self.channel_id, self.guild_id, self.target.target_type, self.event_id
54-
)
55-
}
56-
}

0 commit comments

Comments
 (0)