Remove unnecessary calls to clone()
This commit is contained in:
parent
6ded76a5a7
commit
3a07a17e9d
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue