diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-04-02 12:50:02 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-04-03 12:47:28 +0200 |
commit | 7b16021a896d972273f206d502b56fd70139e43b (patch) | |
tree | 309fed5b48f4c4b04a2e546493baaf05d9db55df /tests/unit/net/fetch.rs | |
parent | 28f1f669bc4c62b1a1a43212c0ad9cdb3d2bf9f2 (diff) | |
download | servo-7b16021a896d972273f206d502b56fd70139e43b.tar.gz servo-7b16021a896d972273f206d502b56fd70139e43b.zip |
Make Response::url_list be a bare Vec<ServoUrl>
Diffstat (limited to 'tests/unit/net/fetch.rs')
-rw-r--r-- | tests/unit/net/fetch.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/net/fetch.rs b/tests/unit/net/fetch.rs index 70c408f1776..7df0af9643c 100644 --- a/tests/unit/net/fetch.rs +++ b/tests/unit/net/fetch.rs @@ -418,7 +418,7 @@ fn test_fetch_response_is_opaque_filtered() { assert_eq!(fetch_response.response_type, ResponseType::Opaque); assert!(fetch_response.url().is_none()); - assert!(fetch_response.url_list.into_inner().len() == 0); + assert!(fetch_response.url_list.is_empty()); // this also asserts that status message is "the empty byte sequence" assert!(fetch_response.status.is_none()); assert_eq!(fetch_response.headers, Headers::new()); |