Remove questionable use of Raw
The notifications field was never really meant to use it.
This commit is contained in:
parent
7426a4e359
commit
8cd3df1465
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user