From 0156f88265264897646ce42deb1878545a9eb17e Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Sun, 15 Apr 2018 11:03:44 +0900 Subject: Compiles in stable rust --- src/compression/mod.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/compression') diff --git a/src/compression/mod.rs b/src/compression/mod.rs index c4f5294..dbf9de8 100644 --- a/src/compression/mod.rs +++ b/src/compression/mod.rs @@ -174,8 +174,6 @@ impl VIntDecoder for BlockDecoder { pub mod tests { use super::*; - use tests; - use test::Bencher; #[test] fn test_encode_sorted_block() { @@ -264,6 +262,13 @@ pub mod tests { } } } +} + +#[cfg(all(test, feature="unstable"))] +mod bench { + + use super::*; + use test::Bencher; #[bench] fn bench_compress(b: &mut Bencher) { @@ -320,5 +325,4 @@ pub mod tests { decoder.uncompress_vint_sorted(compressed, 0u32, NUM_INTS_BENCH_VINT); }); } - } -- cgit v1.2.3