Remove unnecessary calls to clone()
parent
6ded76a5a7
commit
3a07a17e9d
|
@ -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(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue