Skip to content

Commit

Permalink
Remove redundant allow(clippy::too_many_arguments) (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani authored May 11, 2023
1 parent 07ddc96 commit 455029d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Remove redundant #[allow(clippy::too_many_arguments)]
([#674](https://github.com/cosmos/ibc-rs/issues/674))
5 changes: 1 addition & 4 deletions crates/ibc/src/applications/transfer/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ pub fn cosmos_adr028_escrow_address(port_id: &PortId, channel_id: &ChannelId) ->
hash
}

#[allow(clippy::too_many_arguments)]
pub fn on_chan_open_init_validate(
ctx: &impl TokenTransferValidationContext,
order: Order,
Expand Down Expand Up @@ -147,7 +146,6 @@ pub fn on_chan_open_init_validate(
Ok(())
}

#[allow(clippy::too_many_arguments)]
pub fn on_chan_open_init_execute(
_ctx: &mut impl TokenTransferExecutionContext,
_order: Order,
Expand All @@ -160,7 +158,6 @@ pub fn on_chan_open_init_execute(
Ok((ModuleExtras::empty(), Version::new(VERSION.to_string())))
}

#[allow(clippy::too_many_arguments)]
pub fn on_chan_open_try_validate(
_ctx: &impl TokenTransferValidationContext,
order: Order,
Expand All @@ -184,7 +181,6 @@ pub fn on_chan_open_try_validate(
Ok(())
}

#[allow(clippy::too_many_arguments)]
pub fn on_chan_open_try_execute(
_ctx: &mut impl TokenTransferExecutionContext,
_order: Order,
Expand Down Expand Up @@ -242,6 +238,7 @@ pub fn on_chan_close_init_validate(
) -> Result<(), TokenTransferError> {
Err(TokenTransferError::CantCloseChannel)
}

pub fn on_chan_close_init_execute(
_ctx: &mut impl TokenTransferExecutionContext,
_port_id: &PortId,
Expand Down
4 changes: 0 additions & 4 deletions crates/ibc/src/core/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ impl ModuleExtras {

/// The trait that defines an IBC application
pub trait Module: Debug {
#[allow(clippy::too_many_arguments)]
fn on_chan_open_init_validate(
&self,
order: Order,
Expand All @@ -143,7 +142,6 @@ pub trait Module: Debug {
version: &Version,
) -> Result<Version, ChannelError>;

#[allow(clippy::too_many_arguments)]
fn on_chan_open_init_execute(
&mut self,
order: Order,
Expand All @@ -154,7 +152,6 @@ pub trait Module: Debug {
version: &Version,
) -> Result<(ModuleExtras, Version), ChannelError>;

#[allow(clippy::too_many_arguments)]
fn on_chan_open_try_validate(
&self,
order: Order,
Expand All @@ -165,7 +162,6 @@ pub trait Module: Debug {
counterparty_version: &Version,
) -> Result<Version, ChannelError>;

#[allow(clippy::too_many_arguments)]
fn on_chan_open_try_execute(
&mut self,
order: Order,
Expand Down

0 comments on commit 455029d

Please sign in to comment.