Commit b3550b42 authored by goroutine's avatar goroutine Committed by GitHub

Merge pull request #41 from pingcap/busyjay/impl-debug

*: implement debug for DB
parents 3d49265a c67faf11
...@@ -52,6 +52,12 @@ pub struct DB { ...@@ -52,6 +52,12 @@ pub struct DB {
opts: Options, opts: Options,
} }
impl Debug for DB {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
write!(f, "Db [path={}]", self.path)
}
}
unsafe impl Send for DB {} unsafe impl Send for DB {}
unsafe impl Sync for DB {} unsafe impl Sync for DB {}
......
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