fix warnings

This commit is contained in:
Chris West (Faux)
2019-09-09 19:54:45 +01:00
parent 90e3e7ab1a
commit a97dfcb408
2 changed files with 2 additions and 2 deletions

View File

@@ -521,7 +521,7 @@ fn read_next_line<R: Read>(reader: &mut R) -> IoResult<AsciiString> {
let byte = reader.bytes().next();
let byte = match byte {
Some(b) => r#try!(b),
Some(b) => b?,
None => return Err(IoError::new(ErrorKind::ConnectionAborted, "Unexpected EOF")),
};