Fix clippy warnings remove unused imports

This commit is contained in:
Devin Ragotzy 2021-01-05 09:21:41 -05:00 committed by Timo Kösters
parent 0ee239c9d7
commit 7c4d74bf9b
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
7 changed files with 39 additions and 34 deletions

View file

@ -675,7 +675,6 @@ async fn join_room_by_id_helper(
.iter()
.filter(|id| resolved_events.values().any(|rid| rid == *id))
{
// this is a `state_res::StateEvent` that holds a `ruma::Pdu`
let pdu = event_map
.get(ev_id)
.expect("Found event_id in sorted events that is not in resolved state");