From c21406ad277e040e02057564c97e1a90f30beb15 Mon Sep 17 00:00:00 2001 From: Pawel Iwan Date: Fri, 4 Aug 2023 17:16:07 +0200 Subject: [PATCH] fix non-std --- sdk/src/types/block/output/feature/block_issuer.rs | 1 + sdk/src/types/block/public_key/mod.rs | 2 ++ sdk/src/types/block/slot/index.rs | 2 -- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/src/types/block/output/feature/block_issuer.rs b/sdk/src/types/block/output/feature/block_issuer.rs index d8d2b4f148..b417ef855a 100644 --- a/sdk/src/types/block/output/feature/block_issuer.rs +++ b/sdk/src/types/block/output/feature/block_issuer.rs @@ -1,6 +1,7 @@ // Copyright 2023 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 +use alloc::vec::Vec; use crate::types::block::{ public_key::{PublicKey, PublicKeys}, slot::SlotIndex, diff --git a/sdk/src/types/block/public_key/mod.rs b/sdk/src/types/block/public_key/mod.rs index af077b4ded..92906e630b 100644 --- a/sdk/src/types/block/public_key/mod.rs +++ b/sdk/src/types/block/public_key/mod.rs @@ -3,7 +3,9 @@ mod ed25519; +use alloc::boxed::Box; use alloc::collections::BTreeSet; +use alloc::vec::Vec; use core::ops::RangeInclusive; use derive_more::{Deref, From}; diff --git a/sdk/src/types/block/slot/index.rs b/sdk/src/types/block/slot/index.rs index de671f447f..27d62fee89 100644 --- a/sdk/src/types/block/slot/index.rs +++ b/sdk/src/types/block/slot/index.rs @@ -3,8 +3,6 @@ use derive_more::{Deref, Display, From, FromStr}; -use crate::utils::serde::string; - /// Timeline is divided into slots, and each slot has a corresponding slot index. /// To calculate the slot index of a timestamp, `genesisTimestamp` and the duration of a slot are needed. /// The slot index of timestamp `ts` is `(ts - genesisTimestamp)/duration + 1`.