From 77cd708d1c7f3f0f7b8c9d491cb7a615b4e90340 Mon Sep 17 00:00:00 2001 From: Lucas Colombo Date: Fri, 31 May 2024 10:23:24 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=9A=91=20error=20response=20has=20?= =?UTF-8?q?same=20name=20than=20tungstenite's?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 2 +- lib/socket/event.rs | 2 +- lib/socket/server.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b39ce23..98458f3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,7 +10,7 @@ ".cocorc": true, ".task": true, ".cargo": true, - // ".github": true, + ".github": true, // "rustfmt.toml": true, // "**/**/Cargo.toml": true, diff --git a/lib/socket/event.rs b/lib/socket/event.rs index ed59754..7471255 100644 --- a/lib/socket/event.rs +++ b/lib/socket/event.rs @@ -12,7 +12,7 @@ pub struct WsEvent { } #[derive(Serialize, Deserialize)] -pub struct ErrorResponse { +pub struct WsErrorResponse { #[serde(rename = "errorCode")] pub error_code: u16, pub msg: String, diff --git a/lib/socket/server.rs b/lib/socket/server.rs index 66c1f94..81df8e0 100644 --- a/lib/socket/server.rs +++ b/lib/socket/server.rs @@ -16,7 +16,7 @@ pub use { tokio::net::{TcpListener, TcpStream}, tokio_tungstenite::{ tungstenite::{ - handshake::server::{Request, Response}, + handshake::server::{ErrorResponse, Request, Response}, Error, }, WebSocketStream,