Remove unnecessary calls to clone()

This commit is contained in:
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

View file

@ -32,9 +32,9 @@ pub struct MessageWrapper(pub SyncMessageEvent);
impl MessageWrapper {
pub fn clone_into_any_content(event: &AnyMessageEventStub) -> SyncMessageEvent {
MessageEventStub {
content: event.content().clone(),
content: event.content(),
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(),
unsigned: event.unsigned().clone(),
}