Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Sep 6, 2023
1 parent 4b4eafc commit ac0b7ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion moksha-fedimint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ impl FedimintWallet {
let ln_invoice = Invoice::from_str(&invoice)?;

let (pay_types, _) = self.client.pay_bolt11_invoice(ln_invoice).await?;
let PayType::Lightning(operation_id) = pay_types else { unreachable!("paying invoice over lightning"); };
let PayType::Lightning(operation_id) = pay_types else {
unreachable!("paying invoice over lightning");
};
let mut updates = self
.client
.subscribe_ln_pay(operation_id)
Expand Down
2 changes: 1 addition & 1 deletion moksha-mint/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl Database for RocksDB {
used_proofs
.proofs()
.into_iter()
.chain(proofs.proofs().into_iter())
.chain(proofs.proofs())
.collect(),
);
self.put_serialized(DbKeyPrefix::UsedProofs, &insert)?;
Expand Down
4 changes: 2 additions & 2 deletions moksha-wallet/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ impl<C: Client, L: LocalStore> Wallet<C, L> {
promises: Some(promises),
} => {
let len_first = first_secrets.len();
let secrets = vec![first_secrets, second_secrets].concat();
let outputs = vec![first_outputs, second_outputs].concat();
let secrets = [first_secrets, second_secrets].concat();
let outputs = [first_outputs, second_outputs].concat();

let proofs = self
.create_proofs_from_blinded_signatures(promises, secrets, outputs)?
Expand Down

0 comments on commit ac0b7ce

Please sign in to comment.