From ef431050173575735e7e8f4e43247c5975529362 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Thu, 21 Dec 2023 17:30:45 -0700 Subject: [PATCH] Strengthen bounds on `map_authorization` arguments. --- src/bundle.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bundle.rs b/src/bundle.rs index 75941f9..bf6f5fc 100644 --- a/src/bundle.rs +++ b/src/bundle.rs @@ -135,10 +135,10 @@ impl Bundle { pub fn map_authorization( self, mut context: R, - mut spend_proof: impl FnMut(&mut R, A::SpendProof) -> B::SpendProof, - mut output_proof: impl FnMut(&mut R, A::OutputProof) -> B::OutputProof, - mut auth_sig: impl FnMut(&mut R, A::AuthSig) -> B::AuthSig, - mut auth: impl FnMut(&mut R, A) -> B, + spend_proof: impl Fn(&mut R, A::SpendProof) -> B::SpendProof, + output_proof: impl Fn(&mut R, A::OutputProof) -> B::OutputProof, + auth_sig: impl Fn(&mut R, A::AuthSig) -> B::AuthSig, + auth: impl FnOnce(&mut R, A) -> B, ) -> Bundle { Bundle { shielded_spends: self