From 6f06c1c1e9e815909699b5f6e3c122e9e7ed17eb Mon Sep 17 00:00:00 2001 From: Myk Melez Date: Mon, 22 Oct 2018 17:20:36 -0700 Subject: [PATCH] remove test that is no longer relevant --- src/cursor.rs | 10 ---------- 1 file changed, 10 deletions(-) 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]