From 7f5a1538d36bb2215c74ad8dc3ba5c32661c05b8 Mon Sep 17 00:00:00 2001 From: CYBAI Date: Fri, 26 Jan 2018 01:07:40 +0800 Subject: [PATCH] Use specific assertion for net fetch methods --- components/net/fetch/methods.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs index 69999d381cc..667b46090c7 100644 --- a/components/net/fetch/methods.rs +++ b/components/net/fetch/methods.rs @@ -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 target.process_response_chunk(vec.clone()); } else { - assert!(*body == ResponseBody::Empty) + assert_eq!(*body, ResponseBody::Empty) } } }