events: Remove unnecessary Box around Raw

This commit is contained in:
Jonas Platte 2022-12-15 16:29:40 +01:00 committed by Jonas Platte
parent d20f42617c
commit 5ff113a286

View File

@ -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<Raw<AnyMessageLikeEvent>>,
pub latest_event: Raw<AnyMessageLikeEvent>,
/// 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<Raw<AnyMessageLikeEvent>>,
latest_event: Raw<AnyMessageLikeEvent>,
count: UInt,
current_user_participated: bool,
) -> Self {