Skip to content

Commit e831187

Browse files
Remove AHashMap requirement
1 parent 92d02cb commit e831187

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[package]
22
name = "expiringmap"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
5-
description = "an AHashMap-backed TTL map"
5+
description = "a HashMap-backed TTL map"
66
keywords = ["ttl", "cache"]
77
categories = ["data-structures"]
88
readme = "README.md"
99
license = "Apache-2.0 OR MIT"
1010
repository = "https://github.com/randomairborne/expiringmap"
1111

1212
[dependencies]
13-
ahash = "0.8"

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
#![allow(clippy::must_use_candidate)]
1313

1414
use std::{
15+
collections::HashMap,
1516
hash::Hash,
1617
ops::{Deref, DerefMut},
1718
time::{Duration, Instant},
1819
};
1920

20-
use ahash::AHashMap;
21-
2221
#[cfg(test)]
2322
mod test;
2423

25-
type ExpiringMapInner<K, V> = AHashMap<K, ExpiryValue<V>>;
24+
type ExpiringMapInner<K, V> = HashMap<K, ExpiryValue<V>>;
25+
2626
/// A struct to contain a value and its expiry information
2727
#[derive(Debug, Clone)]
2828
pub struct ExpiryValue<T> {

0 commit comments

Comments
 (0)