From f2f750f9f3688e20d44bf43e6c0f568cf86edaa5 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Thu, 2 Feb 2017 20:50:48 -0800 Subject: Alacritty now compiles on stable Rust :tada: --- src/term/cell.rs | 2 +- src/term/mod.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/term') diff --git a/src/term/cell.rs b/src/term/cell.rs index e6e9f340..2cbdf14b 100644 --- a/src/term/cell.rs +++ b/src/term/cell.rs @@ -124,7 +124,7 @@ mod tests { } } -#[cfg(test)] +#[cfg(all(test, feature = "bench"))] mod benches { extern crate test; use super::Cell; diff --git a/src/term/mod.rs b/src/term/mod.rs index 3cf06b2c..e4c64fa5 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -1264,7 +1264,6 @@ impl ansi::Handler for Term { #[cfg(test)] mod tests { extern crate serde_json; - extern crate test; use super::{Term, limit, SizeInfo}; @@ -1314,7 +1313,7 @@ mod tests { } } -#[cfg(test)] +#[cfg(all(test, feature = "bench"))] mod benches { extern crate test; extern crate serde_json as json; -- cgit v1.2.3-54-g00ecf