Skip to content

Commit ac68736

Browse files
committed
Format
1 parent 67613ec commit ac68736

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

packages/std/src/exports/exports.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ use crate::ibc::{
2727
use crate::ibc::{IbcChannelOpenMsg, IbcChannelOpenResponse};
2828
#[cfg(feature = "ibc2")]
2929
use crate::ibc2::{Ibc2PacketAckMsg, Ibc2PacketReceiveMsg, Ibc2PacketTimeoutMsg};
30-
use crate::imports::{ExternalApi, ExternalQuerier, ExternalStorage};
31-
use crate::memory::{Owned, Region};
32-
use crate::panic::install_panic_handler;
3330
use crate::query::CustomQuery;
3431
use crate::results::{ContractResult, QueryResponse, Reply, Response};
3532
use crate::serde::{from_json, to_json_vec};

packages/std/src/testing/mock.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::ibc::{
2424
IbcTimeoutBlock,
2525
};
2626
#[cfg(feature = "ibc2")]
27-
use crate::ibc2::{Ibc2PacketReceiveMsg, Ibc2PacketTimeoutMsg, Ibc2Payload, Ibc2PacketAckMsg};
27+
use crate::ibc2::{Ibc2PacketAckMsg, Ibc2PacketReceiveMsg, Ibc2PacketTimeoutMsg, Ibc2Payload};
2828
#[cfg(feature = "cosmwasm_1_1")]
2929
use crate::query::SupplyResponse;
3030
#[cfg(feature = "staking")]
@@ -666,7 +666,6 @@ pub fn mock_ibc_packet_recv(
666666
#[cfg(feature = "ibc2")]
667667
pub fn mock_ibc2_packet_ack(data: &impl Serialize) -> StdResult<Ibc2PacketAckMsg> {
668668
Ok(Ibc2PacketAckMsg::new(
669-
670669
"source_id23".to_string(),
671670
"channel_id23".to_string(),
672671
Ibc2Payload {

packages/std/src/testing/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub use mock::{
2323
MockQuerierCustomHandlerResult, MOCK_CONTRACT_ADDR,
2424
};
2525
#[cfg(feature = "ibc2")]
26-
pub use mock::{mock_ibc2_packet_recv, mock_ibc2_packet_timeout, mock_ibc2_packet_ack};
26+
pub use mock::{mock_ibc2_packet_ack, mock_ibc2_packet_recv, mock_ibc2_packet_timeout};
2727
#[cfg(feature = "stargate")]
2828
pub use mock::{
2929
mock_ibc_channel, mock_ibc_channel_close_confirm, mock_ibc_channel_close_init,

packages/vm/src/calls.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use cosmwasm_std::{
1616
};
1717

1818
#[cfg(feature = "ibc2")]
19-
use cosmwasm_std::{Ibc2PacketReceiveMsg, Ibc2PacketTimeoutMsg, Ibc2PacketAckMsg};
19+
use cosmwasm_std::{Ibc2PacketAckMsg, Ibc2PacketReceiveMsg, Ibc2PacketTimeoutMsg};
2020

2121
use crate::backend::{BackendApi, Querier, Storage};
2222
use crate::conversion::ref_to_u32;
@@ -689,7 +689,6 @@ where
689689
Q: Querier + 'static,
690690
U: DeserializeOwned + CustomMsg,
691691
{
692-
693692
let env = to_vec(env)?;
694693
let msg = to_vec(msg)?;
695694
let data = call_ibc2_packet_ack_raw(instance, &env, &msg)?;
@@ -1362,7 +1361,9 @@ mod tests {
13621361
#[cfg(feature = "ibc2")]
13631362
mod ibc2 {
13641363
use super::*;
1365-
use cosmwasm_std::testing::{mock_ibc2_packet_recv, mock_ibc2_packet_timeout, mock_ibc2_packet_ack};
1364+
use cosmwasm_std::testing::{
1365+
mock_ibc2_packet_ack, mock_ibc2_packet_recv, mock_ibc2_packet_timeout,
1366+
};
13661367
static IBC2: &[u8] = include_bytes!("../testdata/ibc2.wasm");
13671368

13681369
#[derive(serde::Serialize)]

0 commit comments

Comments
 (0)