We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 014f9d9 commit b3d3b02Copy full SHA for b3d3b02
src/io.rs
@@ -12,7 +12,7 @@ pub enum CmdIn {
12
impl Read for CmdIn {
13
fn read(&mut self, buf: &mut [u8]) -> Result<usize> {
14
match self {
15
- CmdIn::CmdNull => Ok(buf.len()),
+ CmdIn::CmdNull => Ok(0),
16
CmdIn::CmdFile(file) => file.read(buf),
17
CmdIn::CmdPipe(pipe) => pipe.read(buf),
18
}
0 commit comments