summaryrefslogtreecommitdiffstats
path: root/src/fastfield/mod.rs
diff options
context:
space:
mode:
authorPaul Masurel <paul.masurel@gmail.com>2018-04-15 11:03:44 +0900
committerPaul Masurel <paul.masurel@gmail.com>2018-04-15 11:03:44 +0900
commit0156f88265264897646ce42deb1878545a9eb17e (patch)
tree92cfec3b455385f9e92e5bba6ac916272a5341f7 /src/fastfield/mod.rs
parenta1c07bf4573ab11d8dcd6c7c41724048d91ef29e (diff)
Compiles in stable rust
Diffstat (limited to 'src/fastfield/mod.rs')
-rw-r--r--src/fastfield/mod.rs13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/fastfield/mod.rs b/src/fastfield/mod.rs
index 5142163..9e24c17 100644
--- a/src/fastfield/mod.rs
+++ b/src/fastfield/mod.rs
@@ -134,8 +134,6 @@ mod tests {
use std::collections::HashMap;
use std::path::Path;
use super::*;
- use test;
- use test::Bencher;
lazy_static! {
static ref SCHEMA: Schema = {
@@ -409,6 +407,14 @@ mod tests {
}
}
+}
+
+#[cfg(all(test, feature="unstable"))]
+mod bench {
+
+
+ use test::{self, Bencher};
+
#[bench]
fn bench_intfastfield_linear_veclookup(b: &mut Bencher) {
let permutation = generate_permutation();
@@ -502,4 +508,5 @@ mod tests {
});
}
}
-}
+
+} \ No newline at end of file