From bfee89a6905e5873c1c0c9fbe973a308a6317053 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 12 Oct 2016 19:14:27 +0530 Subject: [PATCH] Fix unused crate error --- components/style/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/lib.rs b/components/style/lib.rs index 6d576c842de..35b1ba0a1ce 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -62,7 +62,7 @@ extern crate heapsize; #[allow(unused_extern_crates)] #[macro_use] extern crate lazy_static; -extern crate libc; +#[cfg(feature = "gecko")] extern crate libc; #[macro_use] extern crate log; #[allow(unused_extern_crates)]