uses hyper-proxy 0.3.0

This commit is contained in:
Johann Tuffe
2017-12-19 15:23:39 +08:00
parent 07f89984c4
commit 2f403175dc
4 changed files with 7 additions and 13 deletions

View File

@@ -57,7 +57,6 @@ pub fn spawn(txns: Vec<Txn>) -> Server {
Ok(nread) => n += nread,
}
}
match (::std::str::from_utf8(&expected), ::std::str::from_utf8(&buf[..n])) {
(Ok(expected), Ok(received)) => assert_eq!(expected, received),
_ => assert_eq!(expected, &buf[..n]),