style: make clippy happier

This commit is contained in:
Timo Kösters 2020-10-07 12:29:19 +02:00
parent 4964e21342
commit 304c53c4f5
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
5 changed files with 7 additions and 11 deletions

View file

@ -199,7 +199,7 @@ impl PduEvent {
serde_json::from_value(json).expect("Raw::from_value always works")
}
pub fn to_outgoing_federation_event(
pub fn convert_to_outgoing_federation_event(
mut pdu_json: serde_json::Value,
) -> Raw<ruma::events::pdu::PduStub> {
if let Some(unsigned) = pdu_json
@ -239,7 +239,7 @@ impl From<&state_res::StateEvent> for PduEvent {
content: pdu.content().clone(),
state_key: Some(pdu.state_key()),
prev_events: pdu.prev_event_ids(),
depth: pdu.depth().clone(),
depth: *pdu.depth(),
auth_events: pdu.auth_events(),
redacts: pdu.redacts().cloned(),
unsigned: pdu.unsigned().clone().into_iter().collect(),