From df28531398beb2321fa4f1ee97d7c132ab1bc495 Mon Sep 17 00:00:00 2001 From: francois Date: Sun, 1 Sep 2024 22:29:15 +0200 Subject: [PATCH] clean --- rlp/src/de.rs | 2 +- rlp/src/lib.rs | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/rlp/src/de.rs b/rlp/src/de.rs index aa3880e..5336e89 100644 --- a/rlp/src/de.rs +++ b/rlp/src/de.rs @@ -218,7 +218,7 @@ impl<'de, 'a> Deserializer<'de> for &'a mut Rlp { RecursiveBytes::Nested(recs) => { crate::pack_rlp(Rlp::new_unary(RecursiveBytes::Nested(recs)))? } - RecursiveBytes::EmptyList => unimplemented!(), + RecursiveBytes::EmptyList => unimplemented!(), // TODO }; visitor.visit_bytes(&bytes) diff --git a/rlp/src/lib.rs b/rlp/src/lib.rs index 58e233f..e3b674b 100644 --- a/rlp/src/lib.rs +++ b/rlp/src/lib.rs @@ -580,11 +580,6 @@ mod tests { let rlp = &mut unpack_rlp(bytes).unwrap(); - // assert!(matches!( - // MyType::deserialize(rlp).unwrap_err(), - // RlpError::TrailingBytes - // )); - assert!(MyType::deserialize(rlp).is_err(),) } }