Skip to content

Commit

Permalink
Fix rebase errors (iterator feature attr)
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Sep 24, 2021
1 parent 40a5a6e commit 4cdfaf5
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/storage-plus/src/indexed_map.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// this module requires iterator to be useful at all
#![cfg(feature = "iterator")]

use cosmwasm_std::{StdError, StdResult, Storage};
use serde::de::DeserializeOwned;
use serde::Serialize;
Expand Down
3 changes: 3 additions & 0 deletions packages/storage-plus/src/indexed_snapshot.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// this module requires iterator to be useful at all
#![cfg(feature = "iterator")]

use cosmwasm_std::{StdError, StdResult, Storage};
use serde::de::DeserializeOwned;
use serde::Serialize;
Expand Down
3 changes: 3 additions & 0 deletions packages/storage-plus/src/indexes.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// this module requires iterator to be useful at all
#![cfg(feature = "iterator")]

use serde::de::DeserializeOwned;
use serde::{Deserialize, Serialize};

Expand Down
2 changes: 2 additions & 0 deletions packages/storage-plus/src/iter_helpers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "iterator")]

use serde::de::DeserializeOwned;

use cosmwasm_std::Pair;
Expand Down
3 changes: 3 additions & 0 deletions packages/storage-plus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ mod prefix;
mod snapshot;

pub use endian::Endian;
#[cfg(feature = "iterator")]
pub use indexed_map::{IndexList, IndexedMap};
#[cfg(feature = "iterator")]
pub use indexed_snapshot::IndexedSnapshotMap;
#[cfg(feature = "iterator")]
pub use indexes::{
index_string, index_string_tuple, index_triple, index_tuple, Index, MultiIndex, UniqueIndex,
};
Expand Down
1 change: 1 addition & 0 deletions packages/storage-plus/src/prefix.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(feature = "iterator")]
use serde::de::DeserializeOwned;
use serde::Serialize;
use std::marker::PhantomData;
Expand Down

0 comments on commit 4cdfaf5

Please sign in to comment.