Skip to content

Commit

Permalink
Fix fmt issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Dec 28, 2024
1 parent 28fae41 commit f195a9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions apps/labrinth/src/routes/internal/statuses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ pub async fn ws_init(
}

Ok(Message::Ping(msg)) => {
if let Some(mut socket) = db.auth_sockets.get(&user.id) {
if let Some(socket) = db.auth_sockets.get(&user.id) {
let (_, socket) = socket.value();
let _ = socket.clone().pong(&msg).await;
}
Expand Down Expand Up @@ -221,9 +221,7 @@ pub async fn broadcast_friends(
};

if friend.accepted {
if let Some(mut socket) =
sockets.auth_sockets.get(&friend_id.into())
{
if let Some(socket) = sockets.auth_sockets.get(&friend_id.into()) {
let (_, socket) = socket.value();

let _ =
Expand Down
2 changes: 1 addition & 1 deletion apps/labrinth/src/routes/v3/friends.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub async fn remove_friend(
)
.await?;

if let Some(mut socket) = db.auth_sockets.get(&friend.id.into()) {
if let Some(socket) = db.auth_sockets.get(&friend.id.into()) {
let (_, socket) = socket.value();

let _ = socket
Expand Down

0 comments on commit f195a9d

Please sign in to comment.