Skip to content

Commit 873423a

Browse files
committed
chore; uniffi core clippy
1 parent 53e4537 commit 873423a

File tree

1 file changed

+2
-2
lines changed
  • crates/uniffi/src/uniffi/types

1 file changed

+2
-2
lines changed

crates/uniffi/src/uniffi/types/core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ uniffi::custom_newtype!(U256, String);
1616

1717
// Helper functions to convert between internal types and UniFFI types
1818
pub fn felt_to_field_element(felt: starknet::core::types::Felt) -> FieldElement {
19-
FieldElement(format!("0x{:064x}", felt))
19+
FieldElement(format!("0x{felt:064x}"))
2020
}
2121

2222
pub fn field_element_to_felt(fe: &FieldElement) -> Result<starknet::core::types::Felt, DojoError> {
2323
starknet::core::types::Felt::from_hex(&fe.0).map_err(|_| DojoError::InvalidInput)
2424
}
2525

2626
pub fn u256_to_uniffi(u: crypto_bigint::U256) -> U256 {
27-
U256(format!("0x{:064x}", u))
27+
U256(format!("0x{u:064x}"))
2828
}
2929

3030
pub fn uniffi_to_u256(u: &U256) -> Result<crypto_bigint::U256, DojoError> {

0 commit comments

Comments
 (0)