diff options
author | Paul Masurel <paul.masurel@gmail.com> | 2018-04-15 11:03:44 +0900 |
---|---|---|
committer | Paul Masurel <paul.masurel@gmail.com> | 2018-04-15 11:03:44 +0900 |
commit | 0156f88265264897646ce42deb1878545a9eb17e (patch) | |
tree | 92cfec3b455385f9e92e5bba6ac916272a5341f7 /src/compression/mod.rs | |
parent | a1c07bf4573ab11d8dcd6c7c41724048d91ef29e (diff) |
Compiles in stable rust
Diffstat (limited to 'src/compression/mod.rs')
-rw-r--r-- | src/compression/mod.rs | 10 |
1 files changed, 7 insertions, 3 deletions
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); }); } - } |