From d88c2e0a8a513b2591e2269e3598aa495a463320 Mon Sep 17 00:00:00 2001 From: Tpt Date: Fri, 1 Dec 2023 13:42:14 +0100 Subject: [PATCH] Adds compatibility with lazy_static with spin_no_std feature --- lib/src/storage/backend/rocksdb.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/storage/backend/rocksdb.rs b/lib/src/storage/backend/rocksdb.rs index 67766007..3c21c007 100644 --- a/lib/src/storage/backend/rocksdb.rs +++ b/lib/src/storage/backend/rocksdb.rs @@ -1398,6 +1398,7 @@ impl From for StorageError { struct UnsafeEnv(*mut rocksdb_env_t); // Hack for lazy_static. OK because only written in lazy static and used in a thread-safe way by RocksDB +unsafe impl Send for UnsafeEnv {} unsafe impl Sync for UnsafeEnv {} fn path_to_cstring(path: &Path) -> Result {