From 96f623584a0997263ad78b0faced4ec75ad334bf Mon Sep 17 00:00:00 2001 From: rasul Date: Mon, 6 Apr 2020 10:15:03 -0500 Subject: [PATCH] rustfmt --- src/game/new.rs | 5 ++--- src/server.rs | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/game/new.rs b/src/game/new.rs index 0316fcb..2bb1b08 100644 --- a/src/game/new.rs +++ b/src/game/new.rs @@ -38,12 +38,11 @@ impl Game { let poll = try_log!(Poll::new(), "Unable to create Poll"); try_log!( - poll.registry().register(&mut server.socket, Token(0), Interest::READABLE), + poll.registry() + .register(&mut server.socket, Token(0), Interest::READABLE), "Unable to register poll" ); - - debug!("Accepting connections"); Ok(Self { diff --git a/src/server.rs b/src/server.rs index 622bd22..7d336f9 100644 --- a/src/server.rs +++ b/src/server.rs @@ -3,9 +3,9 @@ use std::io; use std::net::SocketAddr; -use mio::{Interest, Registry, Token}; use mio::event::Source; use mio::net::TcpListener; +use mio::{Interest, Registry, Token}; use crate::client::Client; use crate::result::*; @@ -60,7 +60,7 @@ impl Source for Server { &mut self, registry: &Registry, token: Token, - interest: Interest + interest: Interest, ) -> io::Result<()> { self.socket.register(registry, token, interest) }