Formatted code

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

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ pub enum ClientboundNotification {
Error(WebSocketError),
Authenticated,
Ready {
users: Vec<User>
users: Vec<User>,
},
/*MessageCreate {
+3 -4
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(