aboutsummaryrefslogtreecommitdiffstats
path: root/src/blocking/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/blocking/input.rs')
-rw-r--r--src/blocking/input.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blocking/input.rs b/src/blocking/input.rs
index c668857..771bed4 100644
--- a/src/blocking/input.rs
+++ b/src/blocking/input.rs
@@ -225,13 +225,13 @@ impl Input {
}
}
- fn fill_buf(&mut self) -> Result<bool> {
+ fn fill_buf(&mut self) -> Result<()> {
if self.buf_is_empty() {
self.buf.resize(4096, 0);
self.pos = 0;
let bytes = read_stdin(&mut self.buf)?;
if bytes == 0 {
- return Ok(false);
+ return Ok(());
}
self.buf.truncate(bytes);
}
@@ -244,7 +244,7 @@ impl Input {
while cur < self.pos + expected_bytes {
let bytes = read_stdin(&mut self.buf[cur..])?;
if bytes == 0 {
- return Ok(false);
+ return Ok(());
}
cur += bytes;
}
@@ -252,7 +252,7 @@ impl Input {
}
}
- Ok(true)
+ Ok(())
}
}