Formatted code

This commit is contained in:
Martin Loffler
2021-01-05 15:01:24 +01:00
parent 66a2930a6f
commit bb73f905e6
8 changed files with 63 additions and 41 deletions

View File

@@ -33,7 +33,7 @@ pub enum ClientboundNotification {
Error(WebSocketError),
Authenticated,
Ready {
users: Vec<User>
users: Vec<User>,
},
/*MessageCreate {

View File

@@ -97,11 +97,10 @@ async fn accept(stream: TcpStream) {
) {
send(ClientboundNotification::Authenticated);
match task::block_on(
user.generate_ready_payload()
) {
match task::block_on(user.generate_ready_payload())
{
Ok(payload) => {
send(payload);
send(payload);
}
Err(_) => {
send(ClientboundNotification::Error(