diff options
author | Joe Wilm <joe@jwilm.com> | 2016-09-25 19:33:51 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-09-25 19:33:51 -0700 |
commit | 6a5ac20defa558309a674e069f33febde1824c00 (patch) | |
tree | 29c9144eb72b11cda867e9a221102622c70559cf /src/main.rs | |
parent | 4a679d711fbb1969af8b957ee40877067527b8b8 (diff) | |
download | alacritty-6a5ac20defa558309a674e069f33febde1824c00.tar.gz alacritty-6a5ac20defa558309a674e069f33febde1824c00.zip |
Resolve compiler warnings
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index c6694ce9..4c740ad2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -276,7 +276,7 @@ impl EventLoop { self.tx.clone() } - pub fn spawn(mut self) -> std::thread::JoinHandle<()> { + pub fn spawn(self) -> std::thread::JoinHandle<()> { use mio::{Events, PollOpt, Ready}; use mio::unix::EventedFd; use std::borrow::Cow; @@ -312,7 +312,7 @@ impl EventLoop { thread::spawn_named("pty reader", move || { - let EventLoop { mut poll, mut pty, rx, terminal, proxy, signal_flag, .. } = self; + let EventLoop { poll, mut pty, rx, terminal, proxy, signal_flag, .. } = self; let mut buf = [0u8; 4096]; @@ -401,7 +401,6 @@ impl EventLoop { 'write_list_loop: while let Some(mut write_now) = writing.take() { loop { - let start = write_now.written; match pty.write(write_now.remaining_bytes()) { Ok(0) => { writing = Some(write_now); |