From 5ff113a286a22a5d61e98e9323d1c5d58c970682 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 15 Dec 2022 16:29:40 +0100 Subject: [PATCH] events: Remove unnecessary Box around Raw --- crates/ruma-common/src/events/relation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruma-common/src/events/relation.rs b/crates/ruma-common/src/events/relation.rs index be8f7b68..7de71a76 100644 --- a/crates/ruma-common/src/events/relation.rs +++ b/crates/ruma-common/src/events/relation.rs @@ -214,7 +214,7 @@ impl Thread { #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct BundledThread { /// The latest event in the thread. - pub latest_event: Box>, + pub latest_event: Raw, /// The number of events in the thread. pub count: UInt, @@ -226,7 +226,7 @@ pub struct BundledThread { impl BundledThread { /// Creates a new `BundledThread` with the given event, count and user participated flag. pub fn new( - latest_event: Box>, + latest_event: Raw, count: UInt, current_user_participated: bool, ) -> Self {