Skip to content

Commit

Permalink
Strengthen bounds on map_authorization arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttycom committed Dec 22, 2023
1 parent 0998e89 commit 430f28c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ impl<A: Authorization, V> Bundle<A, V> {
pub fn map_authorization<R, B: 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<B, V> {
Bundle {
shielded_spends: self
Expand Down

0 comments on commit 430f28c

Please sign in to comment.