Use specific assertion for net fetch methods

This commit is contained in:
CYBAI 2018-01-26 01:07:40 +08:00
parent 775d6abb34
commit 7f5a1538d3

View file

@ -442,7 +442,7 @@ fn wait_for_response(response: &mut Response, target: Target, done_chan: &mut Do
// We should still send the body across as a chunk // We should still send the body across as a chunk
target.process_response_chunk(vec.clone()); target.process_response_chunk(vec.clone());
} else { } else {
assert!(*body == ResponseBody::Empty) assert_eq!(*body, ResponseBody::Empty)
} }
} }
} }