From f27cb242a0f8b7b9f95cfd083bc68a49bc57eaa5 Mon Sep 17 00:00:00 2001 From: Xwg Date: Sat, 14 Sep 2024 09:19:33 +0800 Subject: [PATCH] fix: build bug, imports for clarity imports in db.rs by using lock_api for ArcRwLock guards. --- src/db.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index 9b916b1d..9625e8fc 100644 --- a/src/db.rs +++ b/src/db.rs @@ -18,7 +18,8 @@ use crate::storage::{StatisticsMetaCache, Storage, TableCache, Transaction}; use crate::types::tuple::{SchemaRef, Tuple}; use crate::utils::lru::ShardingLruCache; use ahash::HashMap; -use parking_lot::{ArcRwLockReadGuard, ArcRwLockWriteGuard, RawRwLock, RwLock}; +use parking_lot::{RawRwLock, RwLock}; +use parking_lot::lock_api::{ArcRwLockReadGuard, ArcRwLockWriteGuard}; use sqlparser::ast::Statement; use std::hash::RandomState; use std::path::PathBuf;