remove clone

This commit is contained in:
Zomatree
2021-09-15 21:25:37 +01:00
parent 175d257e34
commit edcb7c50ce

View File

@@ -358,7 +358,7 @@ pub fn publish(ids: Vec<String>, notification: ClientboundNotification) {
}
}
let json_msg = Message::Text(serde_json::to_string(&notification.clone()).unwrap());
let json_msg = Message::Text(serde_json::to_string(&notification).unwrap());
let msgpack_msg = Message::Binary(rmp_serde::to_vec_named(&notification).unwrap());
let connections = CONNECTIONS.lock().unwrap();