From f196f5b6f164973d6b343af31ab4e0457f743675 Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Mon, 15 Mar 2021 23:20:38 +0900 Subject: [PATCH] fix clippy warnings --- ruma-federation-api/src/event/get_room_state/v1.rs | 2 +- ruma-federation-api/src/event/get_room_state_ids/v1.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruma-federation-api/src/event/get_room_state/v1.rs b/ruma-federation-api/src/event/get_room_state/v1.rs index 7abeceeb..d1e9417a 100644 --- a/ruma-federation-api/src/event/get_room_state/v1.rs +++ b/ruma-federation-api/src/event/get_room_state/v1.rs @@ -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 } } } diff --git a/ruma-federation-api/src/event/get_room_state_ids/v1.rs b/ruma-federation-api/src/event/get_room_state_ids/v1.rs index 16fc6698..64476d76 100644 --- a/ruma-federation-api/src/event/get_room_state_ids/v1.rs +++ b/ruma-federation-api/src/event/get_room_state_ids/v1.rs @@ -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 } } }