From a8cce36dbb0afb538177f88b9d4d8c8d11101d32 Mon Sep 17 00:00:00 2001 From: Nicolas Lara Date: Mon, 15 May 2023 12:56:49 +0200 Subject: [PATCH] make linter happy --- x/ibc-rate-limit/contracts/rate-limiter/src/sudo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/ibc-rate-limit/contracts/rate-limiter/src/sudo.rs b/x/ibc-rate-limit/contracts/rate-limiter/src/sudo.rs index 36a16f638d4..80e6985d578 100644 --- a/x/ibc-rate-limit/contracts/rate-limiter/src/sudo.rs +++ b/x/ibc-rate-limit/contracts/rate-limiter/src/sudo.rs @@ -21,7 +21,7 @@ pub fn process_packet( #[cfg(test)] channel_value_mock: Option, ) -> Result { let (channel_id, denom) = packet.path_data(&direction); - let path = &Path::new(&channel_id, &denom); + let path = &Path::new(channel_id, denom); let funds = packet.get_funds(); #[cfg(test)] @@ -144,7 +144,7 @@ fn add_rate_limit_attributes(response: Response, result: &RateLimit) -> Response pub fn undo_send(deps: DepsMut, packet: Packet) -> Result { // Sudo call. Only go modules should be allowed to access this let (channel_id, denom) = packet.path_data(&FlowType::Out); // Sends have direction out. - let path = &Path::new(&channel_id, &denom); + let path = &Path::new(channel_id, &denom); let any_path = Path::new("any", &denom); let funds = packet.get_funds();