chore: Fix rogue clippy warnings (#79)

This commit is contained in:
Santiago Carmuega 2022-03-18 16:12:50 -03:00 committed by GitHub
parent aafaec25d4
commit 17a4beb8d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {