From 62951cd2b9478d80f62a6950a92fbb4b6d080fc0 Mon Sep 17 00:00:00 2001 From: brooks Date: Mon, 13 Nov 2023 15:28:07 -0500 Subject: [PATCH] clippy: Uses .into() when .try_into() is infallible --- zk-token-sdk/src/instruction/withdraw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zk-token-sdk/src/instruction/withdraw.rs b/zk-token-sdk/src/instruction/withdraw.rs index 6a493d541fbc54..27a59866356171 100644 --- a/zk-token-sdk/src/instruction/withdraw.rs +++ b/zk-token-sdk/src/instruction/withdraw.rs @@ -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"), } }