aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2015-04-03 13:19:25 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2015-04-03 13:33:57 -0700
commit61ea02d0bf6b9c09b05d49066a3120950276ccb6 (patch)
tree2702a0132c71ac19f8f1660f13d86c03d1b61b7d
parentd707d1b78e3393a1ed164af8ec855bd0ff119e55 (diff)
downloadservo-61ea02d0bf6b9c09b05d49066a3120950276ccb6.tar.gz
servo-61ea02d0bf6b9c09b05d49066a3120950276ccb6.zip
Fix warnings when building tests
-rw-r--r--components/servo/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs
index 4871d9d14cf..051e6190922 100644
--- a/components/servo/lib.rs
+++ b/components/servo/lib.rs
@@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(libc, rustc_private, thread_local)]
+#![cfg_attr(not(test), feature(path))]
#[macro_use]
extern crate log;
@@ -22,9 +23,11 @@ extern crate libc;
extern crate url;
use compositing::CompositorEventListener;
-use compositing::windowing::{WindowEvent, WindowMethods};
+use compositing::windowing::WindowEvent;
#[cfg(not(test))]
+use compositing::windowing::WindowMethods;
+#[cfg(not(test))]
use compositing::{CompositorProxy, CompositorTask, Constellation};
#[cfg(not(test))]
use msg::constellation_msg::Msg as ConstellationMsg;