Skip to content

Commit ca16daf

Browse files
committed
Address warnings and bump version
1 parent cd99f32 commit ca16daf

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "linked-hash-map"
4-
version = "0.0.6"
4+
version = "0.0.7"
55
license = "MIT/Apache-2.0"
66
description = "A HashMap wrapper that holds key-value pairs in insertion order"
77
authors = [

src/lib.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
3030
#![forbid(missing_docs)]
3131
#![feature(hashmap_hasher)]
32-
#![feature(iter_order)]
3332
#![cfg_attr(test, feature(test))]
3433

3534
use std::borrow::Borrow;
@@ -889,15 +888,15 @@ mod bench {
889888
#[bench]
890889
fn not_recycled_cycling(b: &mut test::Bencher) {
891890
let mut hash_map = LinkedHashMap::with_capacity(1000);
892-
for i in (0usize..1000) {
891+
for i in 0usize..1000 {
893892
hash_map.insert(i, i);
894893
}
895894
b.iter(|| {
896-
for i in (0usize..1000) {
895+
for i in 0usize..1000 {
897896
hash_map.remove(&i);
898897
}
899898
hash_map.clear_free_list();
900-
for i in (0usize..1000) {
899+
for i in 0usize..1000 {
901900
hash_map.insert(i, i);
902901
}
903902
})
@@ -906,14 +905,14 @@ mod bench {
906905
#[bench]
907906
fn recycled_cycling(b: &mut test::Bencher) {
908907
let mut hash_map = LinkedHashMap::with_capacity(1000);
909-
for i in (0usize..1000) {
908+
for i in 0usize..1000 {
910909
hash_map.insert(i, i);
911910
}
912911
b.iter(|| {
913-
for i in (0usize..1000) {
912+
for i in 0usize..1000 {
914913
hash_map.remove(&i);
915914
}
916-
for i in (0usize..1000) {
915+
for i in 0usize..1000 {
917916
hash_map.insert(i, i);
918917
}
919918
})

0 commit comments

Comments
 (0)