Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit 2ffeaa8

Browse files
committed
Cleanup imports
1 parent c64be7f commit 2ffeaa8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/gateway.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{errors::ApiError, extractors::Authentication, ApiState};
22
use axum::extract::{ws::close_code, ws::CloseFrame, ws::Message, ws::WebSocket, State, WebSocketUpgrade};
3-
use axum::{body::Body, http::StatusCode, response::Response};
3+
use axum::{body::Body, response::Response};
44
use log::warn;
55
use sqlx::query;
66
use std::{convert::Infallible, fmt::Display, fmt::Formatter, time::Duration};
@@ -124,7 +124,6 @@ enum DisconnectReason {
124124
Error = close_code::ERROR,
125125
InvalidData = close_code::INVALID,
126126
TimedOut = 1014, // There is no pre-defined code for timeouts
127-
Conflict = 1015,
128127
}
129128

130129
impl Display for DisconnectReason {
@@ -134,7 +133,6 @@ impl Display for DisconnectReason {
134133
Error => write!(f, "Error"),
135134
InvalidData => write!(f, "Invalid Data"),
136135
TimedOut => write!(f, "Timed Out"),
137-
Conflict => write!(f, "Conflict"),
138136
}
139137
}
140138
}

0 commit comments

Comments
 (0)