|
|
@ -1,6 +1,6 @@ |
|
|
|
use libc::{c_void, size_t, c_uint}; |
|
|
|
use libc::{c_void, size_t, c_uint}; |
|
|
|
use std::{mem, ptr, raw}; |
|
|
|
use std::{mem, ptr, raw}; |
|
|
|
use std::kinds::marker; |
|
|
|
use std::marker; |
|
|
|
|
|
|
|
|
|
|
|
use ffi; |
|
|
|
use ffi; |
|
|
|
|
|
|
|
|
|
|
@ -255,7 +255,7 @@ impl <'txn> Iterator for Iter<'txn> { |
|
|
|
// and MDB_EINVAL (and we shouldn't be passing in invalid parameters).
|
|
|
|
// and MDB_EINVAL (and we shouldn't be passing in invalid parameters).
|
|
|
|
// TODO: validate that these are the only failures possible.
|
|
|
|
// TODO: validate that these are the only failures possible.
|
|
|
|
debug_assert!(err_code == ffi::MDB_NOTFOUND, |
|
|
|
debug_assert!(err_code == ffi::MDB_NOTFOUND, |
|
|
|
"Unexpected LMDB error {}.", LmdbError::from_err_code(err_code)); |
|
|
|
"Unexpected LMDB error {:?}.", LmdbError::from_err_code(err_code)); |
|
|
|
None |
|
|
|
None |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|