We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ce111c commit 982d1beCopy full SHA for 982d1be
src/interface/builder.rs
@@ -558,7 +558,7 @@ impl<Seal: ExposedSeal> OperationBuilder<Seal> {
558
}
559
})
560
.collect::<Vec<_>>();
561
- vec.last_mut().map(|assignment| {
+ if let Some(assignment) = vec.last_mut() {
562
blindings.pop();
563
let state = assignment
564
.as_revealed_state_mut()
@@ -580,7 +580,7 @@ impl<Seal: ExposedSeal> OperationBuilder<Seal> {
580
state.blinding = BlindingFactor::zero_balanced(inputs, blindings).expect(
581
"malformed set of blinding factors; probably random generator is broken",
582
);
583
- });
+ }
584
let state = Confined::try_from_iter(vec).expect("at least one element");
585
let state = TypedAssigns::Fungible(state);
586
(id, state)
0 commit comments