From 6db5128b39cff7cc56b37fde6d5ef0b2a5614ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A8r=20Kessels?= Date: Tue, 25 Jun 2024 07:42:59 +0200 Subject: [PATCH] chore: Remove unused code --- Cargo.lock | 2 +- src/main.rs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8ec63bd..c45286b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2162,7 +2162,7 @@ dependencies = [ [[package]] name = "webmocket" -version = "0.6.1" +version = "0.6.2" dependencies = [ "assert_cmd", "axum", diff --git a/src/main.rs b/src/main.rs index fee7fbe..748f518 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,6 @@ use futures::{ sink::SinkExt, stream::{SplitSink, SplitStream, StreamExt}, }; -use serde::Serialize; use std::sync::{Arc, RwLock}; use tokio::sync::broadcast; use tower_http::trace::TraceLayer; @@ -36,11 +35,6 @@ struct AppState { tx: broadcast::Sender, } -#[derive(Serialize)] -struct MessageList { - messages: Vec, -} - #[tokio::main] async fn main() { init_tracing();