Skip to content

Commit 3597b14

Browse files
webmaster128aumetra
authored andcommitted
Feature-gate imports
1 parent 020e2f7 commit 3597b14

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/std/src/imports.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@ use crate::sections::decode_sections2;
99
use crate::sections::encode_sections;
1010
use crate::serde::from_json;
1111
use crate::traits::{Api, Querier, QuerierResult, Storage};
12-
#[cfg(feature = "cosmwasm_2_1")]
13-
use crate::HashFunction;
1412
#[cfg(feature = "iterator")]
1513
use crate::{
1614
iterator::{Order, Record},
1715
memory::get_optional_region_address,
1816
};
19-
use crate::{
20-
AggregationError, PairingEqualityError, RecoverPubkeyError, StdError, StdResult, SystemError,
21-
VerificationError,
22-
};
17+
#[cfg(feature = "cosmwasm_2_1")]
18+
use crate::{AggregationError, HashFunction, PairingEqualityError};
19+
use crate::{RecoverPubkeyError, StdError, StdResult, SystemError, VerificationError};
2320

2421
/// An upper bound for typical canonical address lengths (e.g. 20 in Cosmos SDK/Ethereum or 32 in Nano/Substrate)
2522
const CANONICAL_ADDRESS_BUFFER_LENGTH: usize = 64;

0 commit comments

Comments
 (0)