diff options
author | Joe Wilm <joe@jwilm.com> | 2016-12-16 22:13:51 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-16 22:13:51 -0800 |
commit | dc918ae71a5e6c78a77994d7ce106a2253918c54 (patch) | |
tree | 537c7d13443e18ed657398f4eca0bf921ef4ac5e /src/event_loop.rs | |
parent | 3b995ff87a54239ecacb95d51f65c17504a8d22c (diff) | |
download | alacritty-dc918ae71a5e6c78a77994d7ce106a2253918c54.tar.gz alacritty-dc918ae71a5e6c78a77994d7ce106a2253918c54.zip |
Rustup and clippy
All of the changes in this commit are due to clippy lints.
Diffstat (limited to 'src/event_loop.rs')
-rw-r--r-- | src/event_loop.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/event_loop.rs b/src/event_loop.rs index 70aa4acb..e8e323e4 100644 --- a/src/event_loop.rs +++ b/src/event_loop.rs @@ -74,7 +74,7 @@ impl State { fn goto_next(&mut self) { self.writing = self.write_list .pop_front() - .map(|c| Writing::new(c)); + .map(Writing::new); } #[inline] @@ -115,10 +115,10 @@ impl Writing { } } -/// mio::Token for the event loop channel +/// `mio::Token` for the event loop channel const CHANNEL: mio::Token = mio::Token(0); -/// mio::Token for the pty file descriptor +/// `mio::Token` for the pty file descriptor const PTY: mio::Token = mio::Token(1); impl<Io> EventLoop<Io> |