From de565c9af9d523096df0538d2690e0138cde8ce9 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 25 Mar 2022 13:07:16 +0100 Subject: [PATCH] events: Make MediaSource an exhaustive enum --- crates/ruma-common/src/events/room.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruma-common/src/events/room.rs b/crates/ruma-common/src/events/room.rs index cff4ddc6..170f3461 100644 --- a/crates/ruma-common/src/events/room.rs +++ b/crates/ruma-common/src/events/room.rs @@ -35,7 +35,7 @@ pub mod topic; /// The source of a media file. #[derive(Clone, Debug, Deserialize, Serialize)] -#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] +#[allow(clippy::exhaustive_enums)] pub enum MediaSource { /// The MXC URI to the unencrypted media file. #[serde(rename = "url")]