Bug 1508820 - fix "warning: variant is never constructed: `Quit`" r=ato
authorCameron McCormack <cam@mcc.id.au>
Tue, 20 Nov 2018 23:16:10 +0000
changeset 503822 38b7a780c50f568065d830971e092742744f103b
parent 503821 2e3fcb9d7d27befc37f3d77d86dcf78553a67c3f
child 503823 5d6aa2af32d34012e3e79d0e0b8153927f2303ea
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1508820
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1508820 - fix "warning: variant is never constructed: `Quit`" r=ato Differential Revision: https://phabricator.services.mozilla.com/D12489
testing/webdriver/src/server.rs
--- a/testing/webdriver/src/server.rs
+++ b/testing/webdriver/src/server.rs
@@ -14,16 +14,18 @@ use tokio::runtime::current_thread::Runt
 use tokio::reactor::Handle;
 use tokio::net::TcpListener;
 
 use command::{WebDriverCommand, WebDriverMessage};
 use error::{ErrorStatus, WebDriverError, WebDriverResult};
 use httpapi::{VoidWebDriverExtensionRoute, WebDriverExtensionRoute, WebDriverHttpApi};
 use response::{CloseWindowResponse, WebDriverResponse};
 
+// Silence warning about Quit being unused for now.
+#[allow(dead_code)]
 enum DispatchMessage<U: WebDriverExtensionRoute> {
     HandleWebDriver(
         WebDriverMessage<U>,
         Sender<WebDriverResult<WebDriverResponse>>,
     ),
     Quit,
 }