From ad5ac6f0ec811d99f2b77081a5798d86411ee731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Delabrouille?= Date: Tue, 28 Nov 2023 18:29:53 +0100 Subject: [PATCH] fix: tests and ensure_no_std --- crates/starknet-types-core/src/felt/mod.rs | 4 ++-- ensure_no_std/Cargo.toml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/starknet-types-core/src/felt/mod.rs b/crates/starknet-types-core/src/felt/mod.rs index f2ccc25..756eed3 100644 --- a/crates/starknet-types-core/src/felt/mod.rs +++ b/crates/starknet-types-core/src/felt/mod.rs @@ -755,9 +755,9 @@ mod arithmetic { #[cfg(feature = "serde")] mod serde { - use ::serde::{de, ser::SerializeSeq, Deserialize, Serialize}; use alloc::{format, string::String}; use core::fmt; + use serde::{de, ser::SerializeSeq, Deserialize, Serialize}; use super::*; @@ -905,8 +905,8 @@ mod errors { #[cfg(test)] mod test { use super::alloc::{format, string::String, vec::Vec}; + use super::felt_arbitrary::nonzero_felt; use super::*; - use crate::felt_arbitrary::nonzero_felt; use core::ops::Shl; use proptest::prelude::*; #[cfg(feature = "serde")] diff --git a/ensure_no_std/Cargo.toml b/ensure_no_std/Cargo.toml index e18e611..c6291eb 100644 --- a/ensure_no_std/Cargo.toml +++ b/ensure_no_std/Cargo.toml @@ -8,6 +8,7 @@ starknet-types-core = { path = "../crates/starknet-types-core", default-features "alloc", "serde", "curve", + "num-traits", ] } starknet-types-rpc = { path = "../crates/starknet-types-rpc", default-features = false } wee_alloc = "0.4.5"