Skip to content

Commit

Permalink
Adjust format strings for newer clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jan 13, 2023
1 parent 385ccf3 commit 803a3ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pallets/creditcoin/src/migrations/v6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn translate_transfer_kind(old: OldTransferKind) -> Option<TransferKind> {
OldTransferKind::Ethless(_) => TransferKind::Evm(EvmTransferKind::Ethless),
OldTransferKind::Erc20(_) => TransferKind::Evm(EvmTransferKind::Erc20),
other => {
warn_or_panic!("unexpected transfer kind found on storage item: {:?}", other);
warn_or_panic!("unexpected transfer kind found on storage item: {other:?}");
return None;
},
})
Expand Down Expand Up @@ -119,7 +119,7 @@ fn reconstruct_currency(blockchain: &OldBlockchain, kind: &OldTransferKind) -> O
.expect("1 is less than the bound (2); qed"),
),
other => {
warn_or_panic!("unexpected transfer kind found in storage: {:?}", other);
warn_or_panic!("unexpected transfer kind found in storage: {other:?}");
return None;
},
};
Expand Down Expand Up @@ -150,7 +150,7 @@ fn translate_transfer<T: Config>(
deal_order_id: match transfer.order_id {
OldOrderId::Deal(id) => id,
OldOrderId::Repayment(id) => {
warn_or_panic!("Found unexpected repayment ID attached to a transfer: {:?}", id);
warn_or_panic!("Found unexpected repayment ID attached to a transfer: {id:?}");
return None;
},
},
Expand Down

0 comments on commit 803a3ba

Please sign in to comment.