From dd23610f3ed2f9328ecb9192cf726b5ceea3abd4 Mon Sep 17 00:00:00 2001 From: glihm Date: Sun, 10 Dec 2023 14:41:49 -0600 Subject: [PATCH] fix: import str from alloc instead of core --- starknet-core/src/types/byte_array.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/starknet-core/src/types/byte_array.rs b/starknet-core/src/types/byte_array.rs index bf605b02..f52635b6 100644 --- a/starknet-core/src/types/byte_array.rs +++ b/starknet-core/src/types/byte_array.rs @@ -9,8 +9,10 @@ //! //! In the data structure, everything is represented as a felt to be compatible //! with the Cairo implementation. -use alloc::string::FromUtf8Error; -use core::str::{self}; +use alloc::{ + str::{self}, + string::FromUtf8Error, +}; use starknet_ff::FieldElement;