Removing print from readline
This commit is contained in:
parent
04bbb957ef
commit
e033e4bcde
1 changed files with 0 additions and 1 deletions
|
|
@ -295,7 +295,6 @@ impl<T: Read+Write> Client<T> {
|
||||||
if let Err(_) = self.stream.read(byte_buffer) {
|
if let Err(_) = self.stream.read(byte_buffer) {
|
||||||
return Err(Error::Io(io::Error::new(io::ErrorKind::Other, "Failed to read line")));
|
return Err(Error::Io(io::Error::new(io::ErrorKind::Other, "Failed to read line")));
|
||||||
}
|
}
|
||||||
print!("{}", String::from_utf8_lossy(byte_buffer));
|
|
||||||
line_buffer.push(byte_buffer[0]);
|
line_buffer.push(byte_buffer[0]);
|
||||||
}
|
}
|
||||||
Ok(line_buffer)
|
Ok(line_buffer)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue