From 757bebf7a2ef9d976846afa71c5d1b6f353cf47d Mon Sep 17 00:00:00 2001 From: technovision99 <25871300+technovision99@users.noreply.github.com> Date: Sat, 16 Sep 2023 14:12:35 -0700 Subject: [PATCH] updated to latest clippy --- src/compilation/utils/felt252_serde.rs | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/compilation/utils/felt252_serde.rs b/src/compilation/utils/felt252_serde.rs index 632e595..caf2e29 100644 --- a/src/compilation/utils/felt252_serde.rs +++ b/src/compilation/utils/felt252_serde.rs @@ -127,17 +127,14 @@ impl Felt252Serde for StatementIdx { /// A set of all the supported long generic ids. static SERDE_SUPPORTED_LONG_IDS: Lazy> = Lazy::new(|| { - OrderedHashSet::from_iter( - [ - StorageAddressFromBaseAndOffsetLibfunc::STR_ID, - ContractAddressTryFromFelt252Libfunc::STR_ID, - StorageBaseAddressFromFelt252Libfunc::STR_ID, - StorageAddressTryFromFelt252Trait::STR_ID, - Secp256GetPointFromXLibfunc::::STR_ID, - Secp256GetPointFromXLibfunc::::STR_ID, - ] - .into_iter(), - ) + OrderedHashSet::from_iter([ + StorageAddressFromBaseAndOffsetLibfunc::STR_ID, + ContractAddressTryFromFelt252Libfunc::STR_ID, + StorageBaseAddressFromFelt252Libfunc::STR_ID, + StorageAddressTryFromFelt252Trait::STR_ID, + Secp256GetPointFromXLibfunc::::STR_ID, + Secp256GetPointFromXLibfunc::::STR_ID, + ]) }); /// A mapping of all the long names when fixing them from the hashed keccak representation. static LONG_NAME_FIX: Lazy> = Lazy::new(|| {