Skip to content

Commit

Permalink
fix: clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli committed Apr 19, 2023
1 parent 492fdb3 commit 7726985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/types/src/tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ where
let mut bytes = [0u8; 16];
bytes[..12].copy_from_slice(&Prefix::get());

let currency_bytes: [u8; 4] = match currency_id.into() {
let currency_bytes: [u8; 4] = match currency_id {
CurrencyId::ForeignAsset(id32) => Ok(id32.to_be_bytes()),
_ => Err(DispatchError::Token(TokenError::Unsupported)),
}?;
Expand Down

0 comments on commit 7726985

Please sign in to comment.