Skip to content

Commit

Permalink
refactor imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Mar 21, 2024
1 parent a649b49 commit 5d1b62b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/context/custom_ctx.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::str::FromStr;
use core::str::FromStr;

use cosmwasm_std::{Deps, DepsMut, Env, Order, Storage};
use ibc_clients::wasm_types::client_state::ClientState as WasmClientState;
Expand Down Expand Up @@ -27,7 +27,7 @@ pub struct Context<'a, C: ClientType<'a>> {
env: Env,
client_id: ClientId,
checksum: Option<Checksum>,
client_type: std::marker::PhantomData<C>,
client_type: core::marker::PhantomData<C>,
}

impl<'a, C: ClientType<'a>> Context<'a, C> {
Expand All @@ -40,7 +40,7 @@ impl<'a, C: ClientType<'a>> Context<'a, C> {
env,
client_id,
checksum: None,
client_type: std::marker::PhantomData::<C>,
client_type: core::marker::PhantomData::<C>,
})
}

Expand All @@ -53,7 +53,7 @@ impl<'a, C: ClientType<'a>> Context<'a, C> {
env,
client_id,
checksum: None,
client_type: std::marker::PhantomData::<C>,
client_type: core::marker::PhantomData::<C>,
})
}

Expand Down
1 change: 0 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use alloc::string::String;
use std::error::Error as StdError;

use cosmwasm_std::StdError as CwError;
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub enum HeightTravel {
/// Decodes a `Height` from a UTF-8 encoded byte array.
pub fn parse_height(encoded_height: Vec<u8>) -> Result<Height, ClientError> {
let height_str =
alloc::str::from_utf8(encoded_height.as_slice()).map_err(|e| ClientError::Other {
core::str::from_utf8(encoded_height.as_slice()).map_err(|e| ClientError::Other {
description: e.to_string(),
})?;

Expand Down
3 changes: 1 addition & 2 deletions src/msg.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Contains the definition of the messages that can be sent to the CosmWasm contract.
use alloc::vec::Vec;
use std::str::FromStr;
use core::str::FromStr;

use base64::prelude::BASE64_STANDARD;
use base64::Engine;
Expand Down
3 changes: 0 additions & 3 deletions src/response.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use alloc::string::String;
use alloc::vec::Vec;

use cosmwasm_schema::cw_serde;
use ibc_core::client::types::Height;

Expand Down
2 changes: 1 addition & 1 deletion src/types/da_data.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use base64::engine::general_purpose;
use base64::Engine;
use core::fmt::{Debug, Display, Error as FmtError, Formatter};
use std::str::FromStr;
use core::str::FromStr;

use ibc_core::host::types::identifiers::ClientId;
use ibc_core::primitives::proto::Protobuf;
Expand Down
2 changes: 0 additions & 2 deletions src/types/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use alloc::string::{String, ToString};

use ibc_core::client::types::error::ClientError;
use ibc_core::handler::types::error::ContextError;
use ibc_core::host::types::error::IdentifierError;
Expand Down

0 comments on commit 5d1b62b

Please sign in to comment.