Add clone bound to T

This commit is contained in:
bitfl0wer 2023-08-04 16:46:15 +02:00
parent adb5b47bbd
commit 043aaf5e59
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
1 changed files with 1 additions and 1 deletions

View File

@ -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)