From 17a4beb8d81534ef3100555545a1220a8da90844 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Fri, 18 Mar 2022 16:12:50 -0300 Subject: [PATCH] chore: Fix rogue clippy warnings (#79) --- examples/block-decode/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/block-decode/src/main.rs b/examples/block-decode/src/main.rs index c06f23f..bc98b23 100644 --- a/examples/block-decode/src/main.rs +++ b/examples/block-decode/src/main.rs @@ -1,7 +1,5 @@ use std::fmt::Debug; -use net2::TcpStreamExt; - use pallas::ledger::primitives::{alonzo, byron, probing, Era, Fragment}; fn pretty_print(block: impl Debug) { @@ -17,7 +15,7 @@ fn main() { include_str!("blocks/alonzo.block"), ]; - for (idx, block_str) in blocks.iter().enumerate() { + for block_str in blocks.iter() { let bytes = hex::decode(block_str).expect("valid hex"); match probing::probe_block_cbor_era(&bytes) {