Disable clippy::large_enum_variant lint on event enums

This commit is contained in:
Jonas Platte 2020-11-01 14:47:55 +01:00
parent dd6446822b
commit d476046443
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -89,6 +89,7 @@ event_enum! {
}
/// Any event.
#[allow(clippy::large_enum_variant)]
#[derive(Clone, Debug, Serialize)]
#[serde(untagged)]
pub enum AnyEvent {
@ -112,6 +113,7 @@ pub enum AnyEvent {
}
/// Any room event.
#[allow(clippy::large_enum_variant)]
#[derive(Clone, Debug, Serialize)]
#[serde(untagged)]
pub enum AnyRoomEvent {
@ -129,6 +131,7 @@ pub enum AnyRoomEvent {
}
/// Any sync room event (room event without a `room_id`, as returned in `/sync` responses)
#[allow(clippy::large_enum_variant)]
#[derive(Clone, Debug, Serialize)]
#[serde(untagged)]
pub enum AnySyncRoomEvent {