Remove questionable use of Raw

The notifications field was never really meant to use it.
This commit is contained in:
Jonas Platte 2020-09-15 11:28:44 +02:00
parent 7426a4e359
commit 8cd3df1465
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -46,7 +46,7 @@ ruma_api! {
/// The list of events that triggered notifications.
pub notifications: Vec<Raw<Notification>>,
pub notifications: Vec<Notification>,
}
error: crate::Error
@ -61,7 +61,7 @@ impl<'a> Request<'a> {
impl Response {
/// Creates a new `Response` with the given notifications.
pub fn new(notifications: Vec<Raw<Notification>>) -> Self {
pub fn new(notifications: Vec<Notification>) -> Self {
Self { next_token: None, notifications }
}
}