Skip to content

Commit 982d1be

Browse files
committed
chore: fix clippy lints
1 parent 8ce111c commit 982d1be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interface/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ impl<Seal: ExposedSeal> OperationBuilder<Seal> {
558558
}
559559
})
560560
.collect::<Vec<_>>();
561-
vec.last_mut().map(|assignment| {
561+
if let Some(assignment) = vec.last_mut() {
562562
blindings.pop();
563563
let state = assignment
564564
.as_revealed_state_mut()
@@ -580,7 +580,7 @@ impl<Seal: ExposedSeal> OperationBuilder<Seal> {
580580
state.blinding = BlindingFactor::zero_balanced(inputs, blindings).expect(
581581
"malformed set of blinding factors; probably random generator is broken",
582582
);
583-
});
583+
}
584584
let state = Confined::try_from_iter(vec).expect("at least one element");
585585
let state = TypedAssigns::Fungible(state);
586586
(id, state)

0 commit comments

Comments
 (0)