From edcb7c50ce04243cdc2f81fde295e5b40d95c2d8 Mon Sep 17 00:00:00 2001 From: Zomatree Date: Wed, 15 Sep 2021 21:25:37 +0100 Subject: [PATCH] remove clone --- src/notifications/websocket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notifications/websocket.rs b/src/notifications/websocket.rs index a9a02d60..af3e32cb 100644 --- a/src/notifications/websocket.rs +++ b/src/notifications/websocket.rs @@ -358,7 +358,7 @@ pub fn publish(ids: Vec, notification: ClientboundNotification) { } } - let json_msg = Message::Text(serde_json::to_string(¬ification.clone()).unwrap()); + let json_msg = Message::Text(serde_json::to_string(¬ification).unwrap()); let msgpack_msg = Message::Binary(rmp_serde::to_vec_named(¬ification).unwrap()); let connections = CONNECTIONS.lock().unwrap();