fix clippy warnings

This commit is contained in:
Takayuki Maeda 2021-03-15 23:20:38 +09:00 committed by Jonas Platte
parent a071df7638
commit f196f5b6f1
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ ruma_api! {
impl<'a> Request<'a> {
/// Creates a new `Request` with the given event ID and room ID.
pub fn new(event_id: &'a EventId, room_id: &'a RoomId) -> Self {
Self { event_id, room_id }
Self { room_id, event_id }
}
}

View File

@ -36,7 +36,7 @@ ruma_api! {
impl<'a> Request<'a> {
/// Creates a new `Request` with the given event id and room id.
pub fn new(event_id: &'a EventId, room_id: &'a RoomId) -> Self {
Self { event_id, room_id }
Self { room_id, event_id }
}
}