chore: fix lint warning (#283)

This commit is contained in:
Santiago Carmuega 2023-09-07 14:39:18 +02:00 committed by GitHub
parent 384afa284b
commit 1f870cac66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 133 additions and 112 deletions

View file

@ -88,7 +88,7 @@ mod tests {
#[test]
fn test_datums_serialize_as_expected() {
let test_blocks = vec![(
let test_blocks = [(
include_str!("../../../test_data/alonzo9.block"),
include_str!("../../../test_data/alonzo9.datums"),
)];
@ -118,7 +118,7 @@ mod tests {
#[test]
fn test_native_scripts_serialize_as_expected() {
let test_blocks = vec![(
let test_blocks = [(
include_str!("../../../test_data/alonzo9.block"),
include_str!("../../../test_data/alonzo9.native"),
)];

View file

@ -1639,7 +1639,7 @@ mod tests {
#[test]
fn header_isomorphic_decoding_encoding() {
let test_headers = vec![
let test_headers = [
// peculiar alonzo header used as origin for a vasil devnet
include_str!("../../../test_data/alonzo26.header"),
];

View file

@ -745,7 +745,7 @@ mod tests {
#[test]
fn block_isomorphic_decoding_encoding() {
let test_blocks = vec![
let test_blocks = [
include_str!("../../../test_data/babbage1.block"),
include_str!("../../../test_data/babbage2.block"),
include_str!("../../../test_data/babbage3.block"),

View file

@ -829,7 +829,7 @@ mod tests {
fn boundary_block_isomorphic_decoding_encoding() {
type BlockWrapper = (u16, EbBlock);
let test_blocks = vec![include_str!("../../../test_data/genesis.block")];
let test_blocks = [include_str!("../../../test_data/genesis.block")];
for (idx, block_str) in test_blocks.iter().enumerate() {
println!("decoding test block {}", idx + 1);
@ -849,7 +849,7 @@ mod tests {
fn main_block_isomorphic_decoding_encoding() {
type BlockWrapper<'b> = (u16, MintedBlock<'b>);
let test_blocks = vec![
let test_blocks = [
//include_str!("../../../test_data/genesis.block"),
include_str!("../../../test_data/byron1.block"),
include_str!("../../../test_data/byron2.block"),
@ -876,7 +876,7 @@ mod tests {
#[test]
fn header_isomorphic_decoding_encoding() {
let subjects = vec![include_str!("../../../test_data/byron1.header")];
let subjects = [include_str!("../../../test_data/byron1.header")];
for (idx, str) in subjects.iter().enumerate() {
println!("decoding test header {}", idx + 1);