File tree 2 files changed +4
-0
lines changed 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,7 @@ fn star() {
329
329
assert_eq ! ( m. params, params( "foo" , "bar/foo" ) ) ;
330
330
}
331
331
332
+ #[ cfg( test) ]
332
333
#[ bench]
333
334
fn benchmark ( b : & mut test:: Bencher ) {
334
335
let mut router = Router :: new ( ) ;
Original file line number Diff line number Diff line change @@ -565,6 +565,7 @@ fn test_ascii_set() {
565
565
assert ! ( !set. contains( 'ü' ) , "The set does not contain ü" ) ;
566
566
}
567
567
568
+ #[ cfg( test) ]
568
569
#[ bench]
569
570
fn bench_char_set ( b : & mut test:: Bencher ) {
570
571
let mut set = CharSet :: new ( ) ;
@@ -579,6 +580,7 @@ fn bench_char_set(b: &mut test::Bencher) {
579
580
} ) ;
580
581
}
581
582
583
+ #[ cfg( test) ]
582
584
#[ bench]
583
585
fn bench_hash_set ( b : & mut test:: Bencher ) {
584
586
let mut set = HashSet :: new ( ) ;
@@ -593,6 +595,7 @@ fn bench_hash_set(b: &mut test::Bencher) {
593
595
} ) ;
594
596
}
595
597
598
+ #[ cfg( test) ]
596
599
#[ bench]
597
600
fn bench_btree_set ( b : & mut test:: Bencher ) {
598
601
let mut set = BTreeSet :: new ( ) ;
You can’t perform that action at this time.
0 commit comments