fix: 🚑 error response has same name than tungstenite's

This commit is contained in:
Lucas Colombo 2024-05-31 10:23:24 -03:00
parent 32cde9c404
commit 77cd708d1c
Signed by: lucas
GPG Key ID: EF34786CFEFFAE35
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
".cocorc": true,
".task": true,
".cargo": true,
// ".github": true,
".github": true,
// "rustfmt.toml": true,
// "**/**/Cargo.toml": true,

View File

@ -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,

View File

@ -16,7 +16,7 @@ pub use {
tokio::net::{TcpListener, TcpStream},
tokio_tungstenite::{
tungstenite::{
handshake::server::{Request, Response},
handshake::server::{ErrorResponse, Request, Response},
Error,
},
WebSocketStream,