Add clone bound to T
This commit is contained in:
parent
adb5b47bbd
commit
043aaf5e59
|
@ -115,7 +115,7 @@ impl<'a> WebSocketEvent for GatewayReceivePayload<'a> {}
|
||||||
/// a [`Channel`] object.
|
/// a [`Channel`] object.
|
||||||
pub(crate) trait UpdateMessage<T>: Clone + JsonField
|
pub(crate) trait UpdateMessage<T>: Clone + JsonField
|
||||||
where
|
where
|
||||||
T: Updateable + Serialize + DeserializeOwned,
|
T: Updateable + Serialize + DeserializeOwned + Clone,
|
||||||
{
|
{
|
||||||
fn update(&mut self, object_to_update: &mut T) {
|
fn update(&mut self, object_to_update: &mut T) {
|
||||||
update_object(self.get_json(), object_to_update)
|
update_object(self.get_json(), object_to_update)
|
||||||
|
|
Loading…
Reference in New Issue