Skip to content

Commit

Permalink
fix non-std
Browse files Browse the repository at this point in the history
  • Loading branch information
qrayven committed Aug 4, 2023
1 parent e7125ec commit c21406a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions sdk/src/types/block/output/feature/block_issuer.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 2 additions & 0 deletions sdk/src/types/block/public_key/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
2 changes: 0 additions & 2 deletions sdk/src/types/block/slot/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit c21406a

Please sign in to comment.