client-api: Fix clippy warning

This commit is contained in:
Jonas Platte 2021-04-22 15:05:58 +02:00
parent 0411574081
commit 4daa30f1bb
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -43,7 +43,7 @@ ruma_api! {
impl<'a> Request<'a> {
/// Creates a new `Request` with the given data, event type and user ID.
pub fn new(data: &'a RawJsonValue, event_type: &'a str, user_id: &'a UserId) -> Self {
Self { data, event_type, user_id }
Self { user_id, event_type, data }
}
}