Skip to content

Commit

Permalink
Make MessageActivityKind's variants upper camel case (serenity-rs#2005
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nickelc authored and mkrasnitski committed Nov 7, 2022
1 parent e99581c commit 009c7aa
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/model/channel/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1113,22 +1113,18 @@ enum_number!(MessageType {
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[non_exhaustive]
pub enum MessageActivityKind {
#[allow(clippy::upper_case_acronyms)]
JOIN = 1,
#[allow(clippy::upper_case_acronyms)]
SPECTATE = 2,
#[allow(clippy::upper_case_acronyms)]
LISTEN = 3,
#[allow(non_camel_case_types)]
JOIN_REQUEST = 5,
Join = 1,
Spectate = 2,
Listen = 3,
JoinRequest = 5,
Unknown = !0,
}

enum_number!(MessageActivityKind {
JOIN,
SPECTATE,
LISTEN,
JOIN_REQUEST
Join,
Spectate,
Listen,
JoinRequest,
});

/// Rich Presence application information.
Expand Down

0 comments on commit 009c7aa

Please sign in to comment.