From fd310e5b6efb35ab124102bb922db4429900696a Mon Sep 17 00:00:00 2001 From: Devin Ragotzy Date: Tue, 29 Jun 2021 19:26:40 -0400 Subject: [PATCH] identifiers: Make RoomVersionId non_exhaustive --- crates/ruma-identifiers/src/room_version_id.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ruma-identifiers/src/room_version_id.rs b/crates/ruma-identifiers/src/room_version_id.rs index 61437489..f4344415 100644 --- a/crates/ruma-identifiers/src/room_version_id.rs +++ b/crates/ruma-identifiers/src/room_version_id.rs @@ -22,6 +22,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer}; /// written are represented by a hidden enum variant. You can still construct them the same, and /// check for them using one of `RoomVersionId`s `PartialEq` implementations or through `.as_str()`. #[derive(Clone, Debug, PartialEq, Eq, Hash, DisplayAsRefStr)] +#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub enum RoomVersionId { /// A version 1 room. Version1,