From 04647ae09ae7f2d211c06e594561690ec9117acd Mon Sep 17 00:00:00 2001 From: chertov Date: Tue, 1 Dec 2020 18:45:34 +0300 Subject: [PATCH] Replace lru-cache with hashlink --- sqlx-core/Cargo.toml | 2 +- sqlx-core/src/common/statement_cache.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlx-core/Cargo.toml b/sqlx-core/Cargo.toml index 8ab9740d..df577d58 100644 --- a/sqlx-core/Cargo.toml +++ b/sqlx-core/Cargo.toml @@ -106,4 +106,4 @@ webpki = { version = "0.21.3", optional = true } webpki-roots = { version = "0.20.0", optional = true } whoami = "0.9.0" stringprep = "0.1.2" -lru-cache = "0.1.2" +hashlink = "0.6.0" diff --git a/sqlx-core/src/common/statement_cache.rs b/sqlx-core/src/common/statement_cache.rs index 2ae09720..dcf48c94 100644 --- a/sqlx-core/src/common/statement_cache.rs +++ b/sqlx-core/src/common/statement_cache.rs @@ -1,4 +1,4 @@ -use lru_cache::LruCache; +use hashlink::lru_cache::LruCache; /// A cache for prepared statements. When full, the least recently used /// statement gets removed.