testing: Fix clippy

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-05-25 14:44:12 +03:00
parent 8600842f69
commit 8624d7256a
@@ -501,6 +501,7 @@ async fn chainhead_unstable_body() {
let extrinsics: Vec<Vec<u8>> = body.block.extrinsics.into_iter().map(|ext| ext.0).collect();
let expected = format!("0x{}", hex::encode(extrinsics.encode()));
#[cfg(not(feature = "unstable-light-client"))]
assert_matches!(event,
ChainHeadEvent::Done(done) if done.result == expected
);
@@ -556,6 +557,7 @@ async fn chainhead_unstable_storage() {
.unwrap();
let event = sub.next().await.unwrap().unwrap();
#[cfg(not(feature = "unstable-light-client"))]
assert_matches!(event, ChainHeadEvent::<Option<String>>::Done(done) if done.result.is_some());
}