Add clone bound to T

This commit is contained in:
bitfl0wer 2023-08-04 16:46:15 +02:00
parent cfb84f3da0
commit 7b05d391b0
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ impl<'a> WebSocketEvent for GatewayReceivePayload<'a> {}
/// a [`Channel`] object.
pub(crate) trait UpdateMessage<T>: Clone + JsonField
where
T: Updateable + Serialize + DeserializeOwned,
T: Updateable + Serialize + DeserializeOwned + Clone,
{
fn update(&mut self, object_to_update: &mut T) {
update_object(self.get_json(), object_to_update)