From de77007e01e8db9b8927cd7c5cfa9f146c9a9039 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Thu, 8 Aug 2024 04:59:29 -0400 Subject: [PATCH] left a mess --- lib/src/lib.rs | 2 -- server/src/websocket.rs | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/src/lib.rs b/lib/src/lib.rs index c40e053..07a7242 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -1,5 +1,3 @@ -use std::net::SocketAddr; - use serde::{Deserialize, Serialize}; /// Card Pack Meta diff --git a/server/src/websocket.rs b/server/src/websocket.rs index f3da435..c4d80fd 100644 --- a/server/src/websocket.rs +++ b/server/src/websocket.rs @@ -4,7 +4,6 @@ use crate::Game; use crate::NewGameManifest; use crate::User; use anyhow::Result; -use axum::extract::ws::CloseFrame; use axum::{ extract::{ ws::{Message, WebSocket}, @@ -15,7 +14,7 @@ use axum::{ use futures::{SinkExt, StreamExt}; use lib::*; use rand::prelude::SliceRandom; -use serde_json::{from_str, to_string}; +use serde_json::from_str; use std::collections::HashMap; use std::{ net::SocketAddr,