chore: Fix rogue clippy warnings (#79)
This commit is contained in:
parent
d942c73cfa
commit
0c765bea08
1 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
|
||||||
use net2::TcpStreamExt;
|
|
||||||
|
|
||||||
use pallas::ledger::primitives::{alonzo, byron, probing, Era, Fragment};
|
use pallas::ledger::primitives::{alonzo, byron, probing, Era, Fragment};
|
||||||
|
|
||||||
fn pretty_print(block: impl Debug) {
|
fn pretty_print(block: impl Debug) {
|
||||||
|
|
@ -17,7 +15,7 @@ fn main() {
|
||||||
include_str!("blocks/alonzo.block"),
|
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");
|
let bytes = hex::decode(block_str).expect("valid hex");
|
||||||
|
|
||||||
match probing::probe_block_cbor_era(&bytes) {
|
match probing::probe_block_cbor_era(&bytes) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue