port all optional features to 2018-edition
This commit is contained in:
committed by
Sean McArthur
parent
4773408ae4
commit
3ba4b6eadf
@@ -97,9 +97,9 @@ pub fn spawn(txns: Vec<Txn>) -> Server {
|
||||
}
|
||||
}
|
||||
|
||||
match (::std::str::from_utf8(&expected), ::std::str::from_utf8(&buf[..n])) {
|
||||
match (::std::str::from_utf8(&expected), std::str::from_utf8(&buf[..n])) {
|
||||
(Ok(expected), Ok(received)) => {
|
||||
if expected.len() > 300 && ::std::env::var("REQWEST_TEST_BODY_FULL").is_err() {
|
||||
if expected.len() > 300 && std::env::var("REQWEST_TEST_BODY_FULL").is_err() {
|
||||
assert_eq!(
|
||||
expected.len(),
|
||||
received.len(),
|
||||
|
||||
Reference in New Issue
Block a user