diff --git a/abigen-tests/tests/abigen_test.rs b/abigen-tests/tests/abigen_test.rs index bf0b640..20e3c3e 100644 --- a/abigen-tests/tests/abigen_test.rs +++ b/abigen-tests/tests/abigen_test.rs @@ -3,9 +3,9 @@ mod tests { use std::fs; use std::io::Read; + use pb::TransactionStatus::TransactionstatusExecuted; use substreams_antelope::pb; use substreams_antelope_abigen::Abigen; - use pb::TransactionStatus::TransactionstatusExecuted; mod actions { use substreams_antelope_abigen::decoder::decode; @@ -194,10 +194,7 @@ mod tests { &transfer_trace.action_traces[0] ),] ); - pretty_assertions::assert_eq!( - actions.len(), - 1 - ); + pretty_assertions::assert_eq!(actions.len(), 1); } #[test] @@ -216,10 +213,7 @@ mod tests { &transfer_trace.action_traces[4] ),] ); - pretty_assertions::assert_eq!( - actions.len(), - 1 - ); + pretty_assertions::assert_eq!(actions.len(), 1); } #[test] @@ -259,16 +253,14 @@ mod tests { let actions: Vec<_> = block.notifications::(&["tokencontract"]).collect(); pretty_assertions::assert_eq!( actions, - vec![ - ( - actions::Transfer2 { - from: "acc1".into(), - to: "acc2".into(), - quantity: "1.0000 EOS".into(), - }, - &transfer_trace.action_traces[5] - ), - ] + vec![( + actions::Transfer2 { + from: "acc1".into(), + to: "acc2".into(), + quantity: "1.0000 EOS".into(), + }, + &transfer_trace.action_traces[5] + ),] ); } } diff --git a/core/src/block.rs b/core/src/block.rs index 497d98a..7813ff8 100644 --- a/core/src/block.rs +++ b/core/src/block.rs @@ -252,5 +252,4 @@ mod tests { assert_eq!(executed_traces[0], produced_traces[0]); assert_eq!(produced_traces.len(), 1); } - }