Skip to content

Commit

Permalink
fmt/clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Feb 25, 2024
1 parent dd9dafd commit 0fb6bdb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion coins/monero/src/tests/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ fn test_invalid_polyseed() {
let seed = "include domain claim resemble urban hire lunch bird \
crucial fire best wife ring warm ignore model"
.into();
let res = Seed::from_string(Zeroizing::new(seed));
let res =
Seed::from_string(SeedType::Polyseed(polyseed::Language::English), Zeroizing::new(seed));
assert_eq!(res, Err(SeedError::UnsupportedFeatures));
}
4 changes: 2 additions & 2 deletions coins/monero/tests/decoys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test!(
builder.add_payment(addr, 2000000000000);
(builder.build().unwrap(), ())
},
|rpc: Rpc<_>, tx: Transaction, mut scanner: Scanner, _| async move {
|rpc: Rpc<_>, tx: Transaction, mut scanner: Scanner, ()| async move {
let output = scanner.scan_transaction(&tx).not_locked().swap_remove(0);
assert_eq!(output.commitment().amount, 2000000000000);
SpendableOutput::from(&rpc, output).await.unwrap()
Expand Down Expand Up @@ -92,7 +92,7 @@ test!(
builder.add_payment(addr, 2000000000000);
(builder.build().unwrap(), ())
},
|rpc: Rpc<_>, tx: Transaction, mut scanner: Scanner, _| async move {
|rpc: Rpc<_>, tx: Transaction, mut scanner: Scanner, ()| async move {
let output = scanner.scan_transaction(&tx).not_locked().swap_remove(0);
assert_eq!(output.commitment().amount, 2000000000000);
SpendableOutput::from(&rpc, output).await.unwrap()
Expand Down
3 changes: 2 additions & 1 deletion tests/full-stack/src/tests/mint_and_burn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ async fn mint_and_burn_test() {
let rpc = producer_handles.monero(ops).await;
let mut res = Vec::with_capacity(count);
for _ in 0 .. count {
let block = rpc.get_block(rpc.generate_blocks(&addr, 1).await.unwrap().0[0]).await.unwrap();
let block =
rpc.get_block(rpc.generate_blocks(&addr, 1).await.unwrap().0[0]).await.unwrap();

let mut txs = Vec::with_capacity(block.txs.len());
for tx in &block.txs {
Expand Down

0 comments on commit 0fb6bdb

Please sign in to comment.