events: Make MediaSource an exhaustive enum

This commit is contained in:
Jonas Platte 2022-03-25 13:07:16 +01:00
parent 05ad164d21
commit de565c9af9
No known key found for this signature in database
GPG Key ID: BBA95679259D342F

View File

@ -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")]