Skip to content

Commit 855940a

Browse files
Merge #75
75: don't do serde(remote = ...) r=Emilgardis a=Emilgardis Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2 parents 4d9b532 + 153f42b commit 855940a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/eventsub/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ pub struct VerificationRequest {
9292
/// Subscription payload. Received on events. Enumerates all possible [`NotificationPayload`s](NotificationPayload)
9393
///
9494
/// Use [`Payload::parse`] to construct
95-
#[derive(PartialEq, Debug, Serialize, Deserialize)] // FIXME: Clone?
96-
#[serde(remote = "Self")]
95+
#[derive(PartialEq, Debug, Serialize)] // FIXME: Clone?
9796
#[allow(clippy::large_enum_variant)]
9897
pub enum Payload {
9998
/// Webhook Callback Verification

src/pubsub/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ impl TwitchResponse {
267267
/// Message response from twitch PubSub.
268268
///
269269
/// See [TwitchResponse]
270-
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
271-
#[serde(remote = "Self")]
270+
#[derive(Clone, Debug, PartialEq, Serialize)]
272271
pub enum TopicData {
273272
/// Response from the [channel_bits::ChannelBitsEventsV2] topic.
274273
ChannelBitsEventsV2 {

0 commit comments

Comments
 (0)