From ab9028c7785c0170b61a9b7e2fd1497256cee4ac Mon Sep 17 00:00:00 2001 From: zhangjinpeng1987 Date: Mon, 13 Jun 2016 18:06:47 +0800 Subject: [PATCH] DBComressionType copyable --- src/ffi.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ffi.rs b/src/ffi.rs index 1437c6c..367a211 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -70,6 +70,7 @@ pub fn new_cache(capacity: size_t) -> DBCache { unsafe { rocksdb_cache_create_lru(capacity) } } +#[derive(Copy, Clone)] #[repr(C)] pub enum DBCompressionType { None = 0,