Fix warnings and clippy recommendations in common

This commit is contained in:
timokoesters
2019-07-01 22:42:43 +02:00
parent c7c4295a93
commit f5da167ce5
26 changed files with 84 additions and 118 deletions

View File

@ -38,7 +38,7 @@ const BG_COLOR: Rgba<f32> = Rgba {
impl PlayState for MainMenuState {
fn play(&mut self, _: Direction, global_state: &mut GlobalState) -> PlayStateResult {
// Set up an fps clock.
let mut clock = Clock::new();
let mut clock = Clock::start();
// Used for client creation.
let mut client_init: Option<ClientInit> = None;