Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Nov 9, 2023
1 parent 2de620c commit 057bcc4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions moksha-mint/src/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,14 +393,8 @@ mod tests {
let result = mint.split(&request.proofs, &request.outputs).await?;
assert_eq!(result.promises.total_amount(), 64);

let prv_lst = result
.promises
.get((result.promises.len() - 2) as usize)
.unwrap();
let lst = result
.promises
.get((result.promises.len() - 1) as usize)
.unwrap();
let prv_lst = result.promises.get(result.promises.len() - 2).unwrap();
let lst = result.promises.last().unwrap();

assert_eq!(prv_lst.amount, 4);
assert_eq!(lst.amount, 16);
Expand Down

0 comments on commit 057bcc4

Please sign in to comment.