From 6f821835f1f8c0ad4458b75883e02d0f8b3c6bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6sters?= Date: Sun, 18 Oct 2020 11:25:24 +0200 Subject: [PATCH] federation-api: Wrap events jn get_missing_events in Raw --- ruma-federation-api/src/event/get_missing_events/v1.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ruma-federation-api/src/event/get_missing_events/v1.rs b/ruma-federation-api/src/event/get_missing_events/v1.rs index 08140a1b..69b2929b 100644 --- a/ruma-federation-api/src/event/get_missing_events/v1.rs +++ b/ruma-federation-api/src/event/get_missing_events/v1.rs @@ -2,6 +2,7 @@ use js_int::{uint, UInt}; use ruma_api::ruma_api; +use ruma_common::Raw; use ruma_events::pdu::Pdu; use ruma_identifiers::{EventId, RoomId}; @@ -38,7 +39,7 @@ ruma_api! { #[derive(Default)] response: { /// The missing PDUs. - pub events: Vec + pub events: Vec> } } @@ -61,7 +62,7 @@ impl<'a> Request<'a> { impl Response { /// Creates a new `Response` with the given events. - pub fn new(events: Vec) -> Self { + pub fn new(events: Vec>) -> Self { Self { events } } }