Skip to content
Permalink
Browse files

Run rustfmt and put back unused `env_logger::init` call

  • Loading branch information
mlang committed Nov 10, 2019
1 parent 235c848 commit 78e26249f094f4eb9486dd83b52cd25b5c9a2a2e
Showing with 3 additions and 2 deletions.
  1. +3 −2 examples/tcp_server.rs
@@ -13,6 +13,8 @@ const SERVER: Token = Token(0);
const DATA: &[u8] = b"Hello world!\n";

fn main() -> io::Result<()> {
env_logger::init();

// Create a poll instance.
let mut poll = Poll::new()?;
// Create storage for events.
@@ -94,8 +96,7 @@ fn handle_connection_event(
Ok(_) => {
// After we've written something we'll reregister the connection
// to only respond to readable events.
registry
.reregister(&connection, event.token(), Interests::READABLE)?
registry.reregister(&connection, event.token(), Interests::READABLE)?
}
// Would block "errors" are the OS's way of saying that the
// connection is not actually ready to perform this I/O operation.

0 comments on commit 78e2624

Please sign in to comment.
You can’t perform that action at this time.