From 32864442287be765b8d3628767de3a46119a0169 Mon Sep 17 00:00:00 2001 From: Jordan Terrell Date: Thu, 30 Nov 2017 17:00:19 -0600 Subject: [PATCH] Adding Send marker trait to Options --- src/db_options.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db_options.rs b/src/db_options.rs index 8f3a1b2..0e13e99 100644 --- a/src/db_options.rs +++ b/src/db_options.rs @@ -30,6 +30,8 @@ pub fn new_cache(capacity: size_t) -> *mut ffi::rocksdb_cache_t { unsafe { ffi::rocksdb_cache_create_lru(capacity) } } +unsafe impl Send for Options {} + impl Drop for Options { fn drop(&mut self) { unsafe {