Skip to content

Commit

Permalink
fix 6
Browse files Browse the repository at this point in the history
  • Loading branch information
callmeclover committed Apr 23, 2024
1 parent dc6d644 commit 0ef7890
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async fn handle_socket(socket: WebSocket, _who: SocketAddr, state: Arc<AppState>
*USER_ID.lock().unwrap() += 1;
let user_id = USER_ID.lock().unwrap().clone();

let mut user = Arc::new(Mutex::new(User::new("".into(), user_id)));
let user = Arc::new(Mutex::new(User::new("".into(), user_id)));

// We subscribe *before* sending the "joined" message, so that we will also
// display it to our client.
Expand Down
2 changes: 1 addition & 1 deletion src/user/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl GlassModeration {
if analysis.is(Type::EVASIVE) {
self.warn();
}
Ok(&censored)
Ok(censored)
}
}

Expand Down

0 comments on commit 0ef7890

Please sign in to comment.