servo: Merge #14800 - Fix an unused variable warning in net_tests (from mbrubeck:warnings); r=Manishearth
authorMatt Brubeck <mbrubeck@limpet.net>
Fri, 30 Dec 2016 17:28:06 -0800
changeset 340450 228278d0d319013c0ae6169ca1f3ccf8b8ca915a
parent 340449 8b58f577c79e4bae767720e5f99ed3cc749560a6
child 340451 0fdf16676d2756ffa2d54f5cbc7fd6cb752f1835
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersManishearth
servo: Merge #14800 - Fix an unused variable warning in net_tests (from mbrubeck:warnings); r=Manishearth Source-Repo: https://github.com/servo/servo Source-Revision: 30b67a8d7a2435c00177e4731531a2c5fbf54084
servo/tests/unit/net/http_loader.rs
--- a/servo/tests/unit/net/http_loader.rs
+++ b/servo/tests/unit/net/http_loader.rs
@@ -322,17 +322,17 @@ fn test_redirected_request_to_devtools()
         url: pre_url.clone(),
         method: Method::Post,
         destination: Destination::Document,
         origin: pre_url.clone(),
         pipeline_id: Some(TEST_PIPELINE_ID),
         .. RequestInit::default()
     });
     let (devtools_chan, devtools_port) = mpsc::channel();
-    let response = fetch(request, Some(devtools_chan));
+    fetch(request, Some(devtools_chan));
 
     let _ = pre_server.close();
     let _ = post_server.close();
 
     let devhttprequest = expect_devtools_http_request(&devtools_port);
     let devhttpresponse = expect_devtools_http_response(&devtools_port);
 
     assert!(devhttprequest.method == Method::Post);