diff --git a/src/environment.rs b/src/environment.rs index cd16550..87048ce 100644 --- a/src/environment.rs +++ b/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 { + pub fn open_with_permissions(&self, path: &Path, mode: ffi::mdb_mode_t) -> Result { let mut env: *mut ffi::MDB_env = ptr::null_mut(); unsafe { lmdb_try!(ffi::mdb_env_create(&mut env));