Skip to content
Snippets Groups Projects
Unverified Commit 2f440e64 authored by Timo Kösters's avatar Timo Kösters
Browse files

fix: clippy

parent 71ed1b29
No related branches found
No related tags found
No related merge requests found
...@@ -862,8 +862,6 @@ fn handle_incoming_pdu<'a>( ...@@ -862,8 +862,6 @@ fn handle_incoming_pdu<'a>(
.collect(), .collect(),
); );
} }
&state_at_incoming_event;
// TODO: set incoming_auth_events? // TODO: set incoming_auth_events?
} }
...@@ -1860,12 +1858,12 @@ pub async fn create_join_event_route<'a>( ...@@ -1860,12 +1858,12 @@ pub async fn create_join_event_route<'a>(
auth_chain: auth_chain_ids auth_chain: auth_chain_ids
.iter() .iter()
.filter_map(|id| db.rooms.get_pdu_json(&id).ok().flatten()) .filter_map(|id| db.rooms.get_pdu_json(&id).ok().flatten())
.map(|json| PduEvent::convert_to_outgoing_federation_event(json)) .map(PduEvent::convert_to_outgoing_federation_event)
.collect(), .collect(),
state: state_ids state: state_ids
.iter() .iter()
.filter_map(|id| db.rooms.get_pdu_json(&id).ok().flatten()) .filter_map(|id| db.rooms.get_pdu_json(&id).ok().flatten())
.map(|json| PduEvent::convert_to_outgoing_federation_event(json)) .map(PduEvent::convert_to_outgoing_federation_event)
.collect(), .collect(),
}, },
} }
...@@ -2036,7 +2034,7 @@ pub fn get_room_information_route<'a>( ...@@ -2036,7 +2034,7 @@ pub fn get_room_information_route<'a>(
let room_id = db let room_id = db
.rooms .rooms
.id_from_alias(&body.room_alias)? .id_from_alias(&body.room_alias)?
.ok_or_else(|| Error::BadRequest(ErrorKind::NotFound, "Room alias not found."))?; .ok_or(Error::BadRequest(ErrorKind::NotFound, "Room alias not found."))?;
Ok(get_room_information::v1::Response { Ok(get_room_information::v1::Response {
room_id, room_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment