From b6f915b480b82eef35464037469b5da7d9e679af Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 24 Aug 2023 15:36:56 +0200 Subject: [PATCH] events: Remove duplicate / unused RemoveReplyFallback enum --- .../src/events/room/message/sanitize.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/crates/ruma-common/src/events/room/message/sanitize.rs b/crates/ruma-common/src/events/room/message/sanitize.rs index 5bfc4508..27b07a23 100644 --- a/crates/ruma-common/src/events/room/message/sanitize.rs +++ b/crates/ruma-common/src/events/room/message/sanitize.rs @@ -1,19 +1,5 @@ //! Convenience methods and types to sanitize text messages. -/// Whether to remove the [rich reply fallback] while sanitizing. -/// -/// [rich reply fallback]: https://spec.matrix.org/latest/client-server-api/#fallbacks-for-rich-replies -#[cfg(feature = "html")] -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -#[allow(clippy::exhaustive_enums)] -pub enum RemoveReplyFallback { - /// Remove the rich reply fallback. - Yes, - - /// Don't remove the rich reply fallback. - No, -} - /// Remove the [rich reply fallback] of the given plain text string. /// /// [rich reply fallback]: https://spec.matrix.org/latest/client-server-api/#fallbacks-for-rich-replies