File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " linked-hash-map"
4
- version = " 0.0.6 "
4
+ version = " 0.0.7 "
5
5
license = " MIT/Apache-2.0"
6
6
description = " A HashMap wrapper that holds key-value pairs in insertion order"
7
7
authors = [
Original file line number Diff line number Diff line change 29
29
30
30
#![ forbid( missing_docs) ]
31
31
#![ feature( hashmap_hasher) ]
32
- #![ feature( iter_order) ]
33
32
#![ cfg_attr( test, feature( test) ) ]
34
33
35
34
use std:: borrow:: Borrow ;
@@ -889,15 +888,15 @@ mod bench {
889
888
#[ bench]
890
889
fn not_recycled_cycling ( b : & mut test:: Bencher ) {
891
890
let mut hash_map = LinkedHashMap :: with_capacity ( 1000 ) ;
892
- for i in ( 0usize ..1000 ) {
891
+ for i in 0usize ..1000 {
893
892
hash_map. insert ( i, i) ;
894
893
}
895
894
b. iter ( || {
896
- for i in ( 0usize ..1000 ) {
895
+ for i in 0usize ..1000 {
897
896
hash_map. remove ( & i) ;
898
897
}
899
898
hash_map. clear_free_list ( ) ;
900
- for i in ( 0usize ..1000 ) {
899
+ for i in 0usize ..1000 {
901
900
hash_map. insert ( i, i) ;
902
901
}
903
902
} )
@@ -906,14 +905,14 @@ mod bench {
906
905
#[ bench]
907
906
fn recycled_cycling ( b : & mut test:: Bencher ) {
908
907
let mut hash_map = LinkedHashMap :: with_capacity ( 1000 ) ;
909
- for i in ( 0usize ..1000 ) {
908
+ for i in 0usize ..1000 {
910
909
hash_map. insert ( i, i) ;
911
910
}
912
911
b. iter ( || {
913
- for i in ( 0usize ..1000 ) {
912
+ for i in 0usize ..1000 {
914
913
hash_map. remove ( & i) ;
915
914
}
916
- for i in ( 0usize ..1000 ) {
915
+ for i in 0usize ..1000 {
917
916
hash_map. insert ( i, i) ;
918
917
}
919
918
} )
You can’t perform that action at this time.
0 commit comments