Expose errorkind
This commit is contained in:
parent
8ddc953db5
commit
cddcb52750
|
@ -38,6 +38,12 @@ pub struct Iter<'a, K: IndexType, V: IndexType> {
|
|||
iter: TxIndexIter<'a, K, V>,
|
||||
}
|
||||
|
||||
impl Error {
|
||||
pub fn kind(&self) -> &ErrorKind {
|
||||
&self.kind
|
||||
}
|
||||
}
|
||||
|
||||
impl Db {
|
||||
pub fn open(path: impl AsRef<Path>) -> Result<Self, Error> {
|
||||
let persy = Persy::open_or_create_with(path, Config::new(), |_| Ok(()))?;
|
||||
|
|
Loading…
Reference in a new issue