File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use std::u64;
3
3
use self :: CharacterClass :: { Ascii , ValidChars , InvalidChars } ;
4
4
5
5
#[ cfg( test) ] use test;
6
- #[ cfg( test) ] use std:: collections:: TreeSet ;
6
+ #[ cfg( test) ] use std:: collections:: BTreeSet ;
7
7
8
8
#[ deriving( PartialEq , Eq , Clone ) ]
9
9
pub struct CharSet {
@@ -584,8 +584,8 @@ fn bench_hash_set(b: &mut test::Bencher) {
584
584
}
585
585
586
586
#[ bench]
587
- fn bench_tree_set ( b : & mut test:: Bencher ) {
588
- let mut set = TreeSet :: new ( ) ;
587
+ fn bench_btree_set ( b : & mut test:: Bencher ) {
588
+ let mut set = BTreeSet :: new ( ) ;
589
589
set. insert ( 'p' ) ;
590
590
set. insert ( 'n' ) ;
591
591
set. insert ( '/' ) ;
@@ -606,4 +606,3 @@ fn valid(char: char) -> CharacterClass {
606
606
fn invalid ( char : char ) -> CharacterClass {
607
607
CharacterClass :: invalid_char ( char)
608
608
}
609
-
You can’t perform that action at this time.
0 commit comments