fix clippy warnings
This commit is contained in:
parent
a071df7638
commit
f196f5b6f1
@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user