Skip to content

Commit

Permalink
fix nightly imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Mar 8, 2024
1 parent 400deb6 commit f78f639
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion starknet-core/src/serde/byte_array.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub mod base64 {
use alloc::{fmt::Formatter, format, vec::Vec};
use alloc::{fmt::Formatter, format};

use base64::{engine::general_purpose::STANDARD, Engine};
use serde::{de::Visitor, Deserializer, Serializer};
Expand Down
7 changes: 2 additions & 5 deletions starknet-core/src/types/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@
// - `TXN`
// - `TXN_RECEIPT`

use alloc::{format, string::String, vec::Vec};
use alloc::format;

use serde::{Deserialize, Deserializer, Serialize, Serializer};
use serde_with::serde_as;

use crate::{
serde::{byte_array::base64, unsigned_field_element::UfeHex},
types::FieldElement,
};
use crate::serde::byte_array::base64;

use super::{serde_impls::NumAsHex, *};

Expand Down
2 changes: 1 addition & 1 deletion starknet-core/src/types/contract/legacy.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use alloc::{borrow::ToOwned, boxed::Box, collections::BTreeMap, format, string::String, vec::Vec};
use alloc::{collections::BTreeMap, format};

use crate::{
crypto::compute_hash_on_elements,
Expand Down
3 changes: 1 addition & 2 deletions starknet-core/src/types/contract/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use alloc::{format, string::String, vec::Vec};
use alloc::format;

use serde::{ser::SerializeSeq, Deserialize, Deserializer, Serialize, Serializer};
use serde_json_pythonic::to_string_pythonic;
Expand Down Expand Up @@ -242,7 +242,6 @@ pub enum EventFieldKind {
}

mod errors {
use alloc::string::String;
use core::fmt::{Display, Formatter, Result};

#[derive(Debug)]
Expand Down
2 changes: 0 additions & 2 deletions starknet-core/src/types/execution_result.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use alloc::string::String;

use serde::{Deserialize, Serialize};

use super::TransactionExecutionStatus;
Expand Down
2 changes: 0 additions & 2 deletions starknet-core/src/types/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use alloc::{string::String, vec::Vec};

use serde::{Deserialize, Serialize};
use serde_with::serde_as;

Expand Down
2 changes: 0 additions & 2 deletions starknet-core/src/types/msg.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use alloc::vec::Vec;

use sha3::{Digest, Keccak256};
use starknet_ff::FieldElement;

Expand Down
2 changes: 0 additions & 2 deletions starknet-core/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use alloc::string::String;

use crate::{crypto::compute_hash_on_elements, types::FieldElement};

use sha3::{Digest, Keccak256};
Expand Down

0 comments on commit f78f639

Please sign in to comment.