From 982d1be2b20121bc5a3c784b912fc8fcd49a35eb Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Sat, 18 Nov 2023 14:11:36 +0100 Subject: [PATCH] chore: fix clippy lints --- src/interface/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface/builder.rs b/src/interface/builder.rs index 9b0da85c..5e42c587 100644 --- a/src/interface/builder.rs +++ b/src/interface/builder.rs @@ -558,7 +558,7 @@ impl OperationBuilder { } }) .collect::>(); - vec.last_mut().map(|assignment| { + if let Some(assignment) = vec.last_mut() { blindings.pop(); let state = assignment .as_revealed_state_mut() @@ -580,7 +580,7 @@ impl OperationBuilder { state.blinding = BlindingFactor::zero_balanced(inputs, blindings).expect( "malformed set of blinding factors; probably random generator is broken", ); - }); + } let state = Confined::try_from_iter(vec).expect("at least one element"); let state = TypedAssigns::Fungible(state); (id, state)