Skip to content

Commit e877abe

Browse files
committed
style: fixed linter complaints
1 parent f1f0e5b commit e877abe

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/ibc/types/packet.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use super::metadata::TxEncoding;
1616
pub const DEFAULT_TIMEOUT_SECONDS: u64 = 600;
1717

1818
/// `IcaPacketData` is comprised of a raw transaction, type of transaction and optional memo field.
19+
///
1920
/// Currently, the host only supports [protobuf](super::metadata::TxEncoding::Protobuf) or
2021
/// [proto3json](super::metadata::TxEncoding::Proto3Json) serialized Cosmos transactions.
2122
/// This contract only supports the protobuf encoding.
@@ -47,7 +48,7 @@ pub struct IcaPacketData {
4748
impl IcaPacketData {
4849
/// Creates a new [`IcaPacketData`]
4950
#[must_use]
50-
pub fn new(data: Vec<u8>, memo: Option<String>) -> Self {
51+
pub const fn new(data: Vec<u8>, memo: Option<String>) -> Self {
5152
Self {
5253
r#type: 1,
5354
data,

src/ibc/types/stargate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub mod channel {
1515
use super::super::{keys, metadata};
1616

1717
/// Creates a new [`MsgChannelOpenInit`] for an ica channel with the given contract address.
18+
///
1819
/// Also generates the handshake version.
1920
/// If the counterparty port id is not provided, [`keys::HOST_PORT_ID`] is used.
2021
/// If the tx encoding is not provided, [`metadata::TxEncoding::Protobuf`] is used.

src/types/state.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pub const ALLOW_CHANNEL_OPEN_INIT: Item<bool> = Item::new("allow_channel_open_in
3030
pub const ALLOW_CHANNEL_CLOSE_INIT: Item<bool> = Item::new("allow_channel_close_init");
3131

3232
/// The item used to store the paths of an ICA query until its `SendPacket` response is received.
33+
///
3334
/// Once the response is received, it is moved to the [`PENDING_QUERIES`] map and deleted from this item.
3435
/// This is used to ensure that the correct sequence is recorded for the response.
3536
#[cfg(feature = "query")]

0 commit comments

Comments
 (0)