Skip to content

Commit

Permalink
chore: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Nov 18, 2023
1 parent 8ce111c commit 982d1be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interface/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ impl<Seal: ExposedSeal> OperationBuilder<Seal> {
}
})
.collect::<Vec<_>>();
vec.last_mut().map(|assignment| {
if let Some(assignment) = vec.last_mut() {
blindings.pop();
let state = assignment
.as_revealed_state_mut()
Expand All @@ -580,7 +580,7 @@ impl<Seal: ExposedSeal> OperationBuilder<Seal> {
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)
Expand Down

0 comments on commit 982d1be

Please sign in to comment.