Removing print from readline

This commit is contained in:
Matt McCoy 2016-07-14 16:35:38 -04:00
parent 04bbb957ef
commit e033e4bcde

View file

@ -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)