From 4c0b5ce09176f08ea6ac59e377a7534eaa46ff32 Mon Sep 17 00:00:00 2001 From: Victor Porof Date: Tue, 10 Mar 2020 12:30:32 +0100 Subject: [PATCH] Fix type `mode_t` type errors after updating bindings (#78) Signed-off-by: Victor --- src/environment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));