Remove leftover/unused `OtherError`

without.crypto
Victor Porof 4 years ago
parent 5d14812cc9
commit 42c5c2c1b1
  1. 7
      src/env.rs
  2. 3
      src/error.rs

@ -100,12 +100,7 @@ where
{
Ok(Rkv {
path: path.into(),
env: builder.open(path).map_err(|e| {
match e.into() {
StoreError::OtherError(2) => StoreError::DirectoryDoesNotExistError(path.into()),
e => e,
}
})?,
env: builder.open(path).map_err(|e| e.into())?,
})
}
}

@ -98,9 +98,6 @@ pub enum StoreError {
#[fail(display = "attempted to open DB during transaction in thread {:?}", _0)]
OpenAttemptedDuringTransaction(ThreadId),
#[fail(display = "other backing store error: {}", _0)]
OtherError(i32),
}
impl StoreError {

Loading…
Cancel
Save