diff --git a/src/cursor.rs b/src/cursor.rs index eb6dbcf..77fc8b8 100644 --- a/src/cursor.rs +++ b/src/cursor.rs @@ -464,16 +464,6 @@ mod test { assert_eq!(vec!().into_iter().collect::>(), cursor.iter_from(b"key6").collect::>>().unwrap()); - - // Demonstrate how a function that returns a result can use the "?" - // operator to propagate an error returned by Cursor::iter*() methods. - fn iterate<'a>(cursor: &mut RoCursor) -> Result<()> { - match cursor.iter_from("a").collect::>>() { - Ok(_) => Ok(()), - Err(error) => Err(error), - } - } - iterate(&mut cursor).unwrap(); } #[test]