aboutsummaryrefslogtreecommitdiff
path: root/src/event_loop.rs
diff options
context:
space:
mode:
authorgolem131 <golem131@users.noreply.github.com>2018-01-26 23:20:42 +0300
committerChristian Duerr <chrisduerr@users.noreply.github.com>2018-01-26 20:20:42 +0000
commitb82622e9948d1c90fc628739c7f328816214fb33 (patch)
tree4b0d306460c302258953f758c19cba60bad2ee06 /src/event_loop.rs
parent59b561b440060e7b0d13160fb69519d127e6c687 (diff)
downloadalacritty-b82622e9948d1c90fc628739c7f328816214fb33.tar.gz
alacritty-b82622e9948d1c90fc628739c7f328816214fb33.zip
Update dependencies
Updated the version of some dependencies. This also changes to a new clippy version so clippy can work with the latest nightly compiler again. Some issues created by new lints have been fixed.
Diffstat (limited to 'src/event_loop.rs')
-rw-r--r--src/event_loop.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event_loop.rs b/src/event_loop.rs
index 9f02118f..30732e2a 100644
--- a/src/event_loop.rs
+++ b/src/event_loop.rs
@@ -251,7 +251,7 @@ impl<Io> EventLoop<Io>
) -> io::Result<()>
where W: Write
{
- const MAX_READ: usize = 65_536;
+ const MAX_READ: usize = 0x1_0000;
let mut processed = 0;
let mut terminal = None;
@@ -350,7 +350,7 @@ impl<Io> EventLoop<Io>
) -> thread::JoinHandle<(EventLoop<Io>, State)> {
thread::spawn_named("pty reader", move || {
let mut state = state.unwrap_or_else(Default::default);
- let mut buf = [0u8; 4096];
+ let mut buf = [0u8; 0x1000];
let fd = self.pty.as_raw_fd();
let fd = EventedFd(&fd);