Commit 03cf6309 authored by Little-Wallace's avatar Little-Wallace

remove unused class

Signed-off-by: 's avatarLittle-Wallace <bupt2013211450@gmail.com>
parent 7cbc18c2
...@@ -304,14 +304,6 @@ pub enum DBBackgroundErrorReason { ...@@ -304,14 +304,6 @@ pub enum DBBackgroundErrorReason {
MemTable = 4, MemTable = 4,
} }
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
#[repr(C)]
pub enum TransactionWritePolicy {
WriteCommitted = 0,
WritePrepared = 1,
WriteUnPrepared = 2,
}
pub fn error_message(ptr: *mut c_char) -> String { pub fn error_message(ptr: *mut c_char) -> String {
let c_str = unsafe { CStr::from_ptr(ptr) }; let c_str = unsafe { CStr::from_ptr(ptr) };
let s = format!("{}", c_str.to_string_lossy()); let s = format!("{}", c_str.to_string_lossy());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment