Adds compatibility with lazy_static with spin_no_std feature

pull/688/head
Tpt 10 months ago committed by Thomas Tanon
parent 9979a3d503
commit d88c2e0a8a
  1. 1
      lib/src/storage/backend/rocksdb.rs

@ -1398,6 +1398,7 @@ impl From<ErrorStatus> 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<CString, StorageError> {

Loading…
Cancel
Save