(fix) fail! to panic!
This commit is contained in:
@@ -126,7 +126,7 @@ fn bench_mock_http(b: &mut test::Bencher) {
|
||||
// cant unwrap because Err contains RequestWriter, which does not implement Show
|
||||
let mut res = match req.read_response() {
|
||||
Ok(res) => res,
|
||||
Err(..) => fail!("http response failed")
|
||||
Err(..) => panic!("http response failed")
|
||||
};
|
||||
res.read_to_string().unwrap();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user