Merge branch 'return-error-result' into return-error-result-from-iter

without.crypto
Myk Melez 6 years ago
commit a32a67310f
  1. 4
      src/cursor.rs

@ -599,10 +599,6 @@ mod test {
let mut i = 0; let mut i = 0;
let mut count = 0u32; let mut count = 0u32;
for result in cursor.iter() { for result in cursor.iter() {
// let (key, data) = match result {
// Ok((key, data)) => (key, data),
// Err(error) => return Err(error),
// };
let (key, data) = result?; let (key, data) = result?;
i = i + key.len() + data.len(); i = i + key.len() + data.len();
count = count + 1; count = count + 1;

Loading…
Cancel
Save