Formatting

This commit is contained in:
Shane Handley 2019-10-17 14:14:20 +09:00 committed by timokoesters
parent 833c1d06b2
commit 3b24af76ab
No known key found for this signature in database
GPG Key ID: CD80BE9AAEE78097
2 changed files with 5 additions and 4 deletions

View File

@ -77,9 +77,10 @@ fn main() {
match event {
Event::Chat { message, .. } => println!("{}", message),
Event::Disconnect => {} // TODO
Event::DisconnectionNotification(time) => {
println!("{}", format!("Connection lost. Kicking in {} seconds", time))
}
Event::DisconnectionNotification(time) => println!(
"{}",
format!("Connection lost. Kicking in {} seconds", time)
),
}
}
// Clean up the server after a tick.

View File

@ -8,13 +8,13 @@ use crate::{
};
use client::{self, Client, Event::Chat};
use common::{
ChatType,
clock::Clock,
comp,
comp::{Pos, Vel},
msg::ClientState,
terrain::{Block, BlockKind},
vol::ReadVol,
ChatType,
};
use log::error;
use specs::Join;