File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " expiringmap"
3
- version = " 0.1.1 "
3
+ version = " 0.1.2 "
4
4
edition = " 2021"
5
- description = " an AHashMap -backed TTL map"
5
+ description = " a HashMap -backed TTL map"
6
6
keywords = [" ttl" , " cache" ]
7
7
categories = [" data-structures" ]
8
8
readme = " README.md"
9
9
license = " Apache-2.0 OR MIT"
10
10
repository = " https://github.com/randomairborne/expiringmap"
11
11
12
12
[dependencies ]
13
- ahash = " 0.8"
Original file line number Diff line number Diff line change 12
12
#![ allow( clippy:: must_use_candidate) ]
13
13
14
14
use std:: {
15
+ collections:: HashMap ,
15
16
hash:: Hash ,
16
17
ops:: { Deref , DerefMut } ,
17
18
time:: { Duration , Instant } ,
18
19
} ;
19
20
20
- use ahash:: AHashMap ;
21
-
22
21
#[ cfg( test) ]
23
22
mod test;
24
23
25
- type ExpiringMapInner < K , V > = AHashMap < K , ExpiryValue < V > > ;
24
+ type ExpiringMapInner < K , V > = HashMap < K , ExpiryValue < V > > ;
25
+
26
26
/// A struct to contain a value and its expiry information
27
27
#[ derive( Debug , Clone ) ]
28
28
pub struct ExpiryValue < T > {
You can’t perform that action at this time.
0 commit comments