Skip to content

Commit

Permalink
clippy: Uses .into() when .try_into() is infallible (solana-labs#34049)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Nov 14, 2023
1 parent 2877b81 commit ea98c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zk-token-sdk/src/instruction/withdraw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl WithdrawProof {

Self {
commitment: pod_commitment,
equality_proof: equality_proof.try_into().expect("equality proof"),
equality_proof: equality_proof.into(),
range_proof: range_proof.try_into().expect("range proof"),
}
}
Expand Down

0 comments on commit ea98c0e

Please sign in to comment.