Remove unnecessary calls to clone()

master
Jonas Platte 2020-07-10 21:24:01 +02:00
parent 6ded76a5a7
commit 3a07a17e9d
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
1 changed files with 2 additions and 2 deletions

View File

@ -32,9 +32,9 @@ pub struct MessageWrapper(pub SyncMessageEvent);
impl MessageWrapper { impl MessageWrapper {
pub fn clone_into_any_content(event: &AnyMessageEventStub) -> SyncMessageEvent { pub fn clone_into_any_content(event: &AnyMessageEventStub) -> SyncMessageEvent {
MessageEventStub { MessageEventStub {
content: event.content().clone(), content: event.content(),
sender: event.sender().clone(), sender: event.sender().clone(),
origin_server_ts: event.origin_server_ts().clone(), origin_server_ts: *event.origin_server_ts(),
event_id: event.event_id().clone(), event_id: event.event_id().clone(),
unsigned: event.unsigned().clone(), unsigned: event.unsigned().clone(),
} }