Skip to content

Commit d3016f9

Browse files
committed
Nits for clipy
1 parent f3181b3 commit d3016f9

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
8080
strategy:
8181
matrix:
82-
msrv: [1.76.0] # dep/feat syntax fixed with co-exist dep
82+
msrv: [1.78.0] # dep/feat syntax fixed with co-exist dep
8383
name: ubuntu / ${{ matrix.msrv }}
8484
steps:
8585
- uses: actions/checkout@v4

packages/interchain/interchain-daemon/src/interchain_env.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ impl<C: ChannelCreator> DaemonInterchain<C> {
333333
Ok(ibc_trail)
334334
}
335335

336-
async fn find_channel_creation_tx<'a>(
336+
async fn find_channel_creation_tx(
337337
&self,
338-
src_chain: ChainId<'a>,
338+
src_chain: ChainId<'_>,
339339
ibc_channel: &InterchainChannel<Channel>,
340340
) -> Result<ChannelCreation<CosmTxResponse>, InterchainDaemonError> {
341341
for _ in 0..5 {
@@ -393,10 +393,10 @@ impl<C: ChannelCreator> DaemonInterchain<C> {
393393
))
394394
}
395395

396-
async fn get_channel_creation_init<'a>(
396+
async fn get_channel_creation_init(
397397
&self,
398-
from: ChainId<'a>,
399-
ibc_channel: &'a InterchainChannel<Channel>,
398+
from: ChainId<'_>,
399+
ibc_channel: &InterchainChannel<Channel>,
400400
) -> Result<Option<CosmTxResponse>, InterchainDaemonError> {
401401
let (src_port, dst_port) = ibc_channel.get_ordered_ports_from(from)?;
402402

@@ -412,10 +412,10 @@ impl<C: ChannelCreator> DaemonInterchain<C> {
412412
Ok(find_one_tx_by_events(src_port, channel_creation_events_init_events).await?)
413413
}
414414

415-
async fn get_channel_creation_try<'a>(
415+
async fn get_channel_creation_try(
416416
&self,
417-
from: ChainId<'a>,
418-
ibc_channel: &'a InterchainChannel<Channel>,
417+
from: ChainId<'_>,
418+
ibc_channel: &InterchainChannel<Channel>,
419419
) -> Result<Option<CosmTxResponse>, InterchainDaemonError> {
420420
let (src_port, dst_port) = ibc_channel.get_ordered_ports_from(from)?;
421421

@@ -437,10 +437,10 @@ impl<C: ChannelCreator> DaemonInterchain<C> {
437437
Ok(find_one_tx_by_events(dst_port, channel_creation_try_events).await?)
438438
}
439439

440-
async fn get_channel_creation_ack<'a>(
440+
async fn get_channel_creation_ack(
441441
&self,
442-
from: ChainId<'a>,
443-
ibc_channel: &'a InterchainChannel<Channel>,
442+
from: ChainId<'_>,
443+
ibc_channel: &InterchainChannel<Channel>,
444444
) -> Result<Option<CosmTxResponse>, InterchainDaemonError> {
445445
let (src_port, dst_port) = ibc_channel.get_ordered_ports_from(from)?;
446446

@@ -456,10 +456,10 @@ impl<C: ChannelCreator> DaemonInterchain<C> {
456456
Ok(find_one_tx_by_events(src_port, channel_creation_ack_events).await?)
457457
}
458458

459-
async fn get_channel_creation_confirm<'a>(
459+
async fn get_channel_creation_confirm(
460460
&self,
461-
from: ChainId<'a>,
462-
ibc_channel: &'a InterchainChannel<Channel>,
461+
from: ChainId<'_>,
462+
ibc_channel: &InterchainChannel<Channel>,
463463
) -> Result<Option<CosmTxResponse>, InterchainDaemonError> {
464464
let (src_port, dst_port) = ibc_channel.get_ordered_ports_from(from)?;
465465

packages/interchain/interchain-daemon/src/packet_inspector.rs

+21-21
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@ impl PacketInspector {
182182

183183
/// This is a wrapper to follow a packet directly in a single future
184184
/// Prefer the use of `await_ibc_execution` for following IBC packets related to a transaction
185-
pub async fn follow_packet<'a>(
185+
pub async fn follow_packet(
186186
self,
187-
src_chain: ChainId<'a>,
187+
src_chain: ChainId<'_>,
188188
src_port: PortId,
189189
src_channel: ChannelId,
190-
dst_chain: ChainId<'a>,
190+
dst_chain: ChainId<'_>,
191191
sequence: Sequence,
192192
) -> IcDaemonResult<SinglePacketFlow<Daemon>> {
193193
let src_grpc_channel = self.get_grpc_channel(src_chain).await?;
@@ -255,10 +255,10 @@ impl PacketInspector {
255255
/// This is also logged for debugging purposes
256256
///
257257
/// We return the tx hash of the received packet on the remote chain as well as the ack packet transaction on the origin chain
258-
pub async fn follow_packet_cycle<'a>(
258+
pub async fn follow_packet_cycle(
259259
&self,
260-
from: ChainId<'a>,
261-
ibc_channel: &'a InterchainChannel<Channel>,
260+
from: ChainId<'_>,
261+
ibc_channel: &InterchainChannel<Channel>,
262262
sequence: Sequence,
263263
) -> Result<SinglePacketFlow<Daemon>, InterchainDaemonError> {
264264
let (src_port, dst_port) = ibc_channel.get_ordered_ports_from(from)?;
@@ -348,10 +348,10 @@ impl PacketInspector {
348348
}
349349

350350
/// This functions looks for timeouts of an IBC packet on its origin chain. It returns the tx hash of the timeout tx.
351-
pub async fn follow_packet_timeout<'a>(
351+
pub async fn follow_packet_timeout(
352352
&self,
353-
from: ChainId<'a>,
354-
ibc_channel: &'a InterchainChannel<Channel>,
353+
from: ChainId<'_>,
354+
ibc_channel: &InterchainChannel<Channel>,
355355
sequence: Sequence,
356356
) -> Result<SinglePacketFlow<Daemon>, InterchainDaemonError> {
357357
// 0. Query the send tx hash for analysis
@@ -410,10 +410,10 @@ impl PacketInspector {
410410
}
411411

412412
// From is the channel from which the send packet has been sent
413-
pub async fn get_packet_send_tx<'a>(
413+
pub async fn get_packet_send_tx(
414414
&self,
415-
from: ChainId<'a>,
416-
ibc_channel: &'a InterchainChannel<Channel>,
415+
from: ChainId<'_>,
416+
ibc_channel: &InterchainChannel<Channel>,
417417
packet_sequence: Sequence,
418418
) -> Result<CosmTxResponse, InterchainDaemonError> {
419419
let (src_port, dst_port) = ibc_channel.get_ordered_ports_from(from)?;
@@ -437,10 +437,10 @@ impl PacketInspector {
437437
}
438438

439439
// on is the chain on which the packet will be received
440-
pub async fn get_packet_receive_tx<'a>(
440+
pub async fn get_packet_receive_tx(
441441
&self,
442-
from: ChainId<'a>,
443-
ibc_channel: &'a InterchainChannel<Channel>,
442+
from: ChainId<'_>,
443+
ibc_channel: &InterchainChannel<Channel>,
444444
packet_sequence: Sequence,
445445
) -> Result<CosmTxResponse, InterchainDaemonError> {
446446
let (src_port, dst_port) = ibc_channel.get_ordered_ports_from(from)?;
@@ -464,10 +464,10 @@ impl PacketInspector {
464464
}
465465

466466
// on is the chain on which the packet will be received
467-
pub async fn get_packet_timeout_tx<'a>(
467+
pub async fn get_packet_timeout_tx(
468468
&self,
469-
from: ChainId<'a>,
470-
ibc_channel: &'a InterchainChannel<Channel>,
469+
from: ChainId<'_>,
470+
ibc_channel: &InterchainChannel<Channel>,
471471
packet_sequence: Sequence,
472472
) -> Result<CosmTxResponse, InterchainDaemonError> {
473473
let (src_port, dst_port) = ibc_channel.get_ordered_ports_from(from)?;
@@ -491,10 +491,10 @@ impl PacketInspector {
491491
}
492492

493493
// From is the channel from which the original send packet has been sent
494-
pub async fn get_packet_ack_receive_tx<'a>(
494+
pub async fn get_packet_ack_receive_tx(
495495
&self,
496-
from: ChainId<'a>,
497-
ibc_channel: &'a InterchainChannel<Channel>,
496+
from: ChainId<'_>,
497+
ibc_channel: &InterchainChannel<Channel>,
498498
packet_sequence: Sequence,
499499
) -> Result<CosmTxResponse, InterchainDaemonError> {
500500
let (src_port, dst_port) = ibc_channel.get_ordered_ports_from(from)?;

0 commit comments

Comments
 (0)