client-api: Fix clippy warning
This commit is contained in:
parent
0411574081
commit
4daa30f1bb
@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user