Fix type `mode_t` type errors after updating bindings (#78)

Signed-off-by: Victor <victor.porof@gmail.com>
without.crypto
Victor Porof 4 years ago committed by GitHub
parent a98be11665
commit 4c0b5ce091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/environment.rs

@ -406,7 +406,7 @@ impl EnvironmentBuilder {
///
/// The path may not contain the null character, Windows UNC (Uniform Naming Convention)
/// paths are not supported either.
pub fn open_with_permissions(&self, path: &Path, mode: ffi::mode_t) -> Result<Environment> {
pub fn open_with_permissions(&self, path: &Path, mode: ffi::mdb_mode_t) -> Result<Environment> {
let mut env: *mut ffi::MDB_env = ptr::null_mut();
unsafe {
lmdb_try!(ffi::mdb_env_create(&mut env));

Loading…
Cancel
Save