diff --git a/crates/relayer-types/src/core/ics02_client/trust_threshold.rs b/crates/relayer-types/src/core/ics02_client/trust_threshold.rs index 55f095c4f7..96795cea2d 100644 --- a/crates/relayer-types/src/core/ics02_client/trust_threshold.rs +++ b/crates/relayer-types/src/core/ics02_client/trust_threshold.rs @@ -217,7 +217,7 @@ where struct StringOrInt; - impl<'de> Visitor<'de> for StringOrInt { + impl Visitor<'_> for StringOrInt { type Value = u64; fn expecting(&self, formatter: &mut Formatter<'_>) -> fmt::Result { diff --git a/crates/relayer-types/src/core/ics04_channel/packet.rs b/crates/relayer-types/src/core/ics04_channel/packet.rs index 316227c08f..28babd7d43 100644 --- a/crates/relayer-types/src/core/ics04_channel/packet.rs +++ b/crates/relayer-types/src/core/ics04_channel/packet.rs @@ -129,7 +129,7 @@ pub struct Packet { struct PacketData<'a>(&'a [u8]); -impl<'a> core::fmt::Debug for PacketData<'a> { +impl core::fmt::Debug for PacketData<'_> { fn fmt(&self, formatter: &mut core::fmt::Formatter<'_>) -> Result<(), core::fmt::Error> { write!(formatter, "{:?}", self.0) } diff --git a/crates/relayer-types/src/utils/pretty.rs b/crates/relayer-types/src/utils/pretty.rs index d44745b956..895d0e1958 100644 --- a/crates/relayer-types/src/utils/pretty.rs +++ b/crates/relayer-types/src/utils/pretty.rs @@ -13,7 +13,7 @@ impl Display for PrettyDuration<'_> { pub struct PrettyOption<'a, T>(pub &'a Option); -impl<'a, T: Display> Display for PrettyOption<'a, T> { +impl Display for PrettyOption<'_, T> { fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), FmtError> { match &self.0 { Some(v) => write!(f, "{v}"), @@ -62,7 +62,7 @@ impl Display for PrettyValidatorSet<'_> { pub struct PrettySlice<'a, T>(pub &'a [T]); -impl<'a, T: Display> Display for PrettySlice<'a, T> { +impl Display for PrettySlice<'_, T> { fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), FmtError> { write!(f, "[ ")?; let mut vec_iterator = self.0.iter().peekable(); diff --git a/crates/relayer/src/config/filter.rs b/crates/relayer/src/config/filter.rs index 5feb4376e1..002a19b0f9 100644 --- a/crates/relayer/src/config/filter.rs +++ b/crates/relayer/src/config/filter.rs @@ -208,7 +208,7 @@ impl Serialize for ChannelFilters { b: &'a FilterPattern, } - impl<'a> Serialize for Pair<'a> { + impl Serialize for Pair<'_> { fn serialize(&self, serializer: S) -> Result where S: Serializer, @@ -378,7 +378,7 @@ pub(crate) mod port { pub struct PortFilterMatchVisitor; - impl<'de> de::Visitor<'de> for PortFilterMatchVisitor { + impl de::Visitor<'_> for PortFilterMatchVisitor { type Value = PortFilterMatch; fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { @@ -407,7 +407,7 @@ pub(crate) mod channel { pub struct ChannelFilterMatchVisitor; - impl<'de> de::Visitor<'de> for ChannelFilterMatchVisitor { + impl de::Visitor<'_> for ChannelFilterMatchVisitor { type Value = ChannelFilterMatch; fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { diff --git a/crates/relayer/src/config/proof_specs.rs b/crates/relayer/src/config/proof_specs.rs index d7c7f80cce..33fa2f8a78 100644 --- a/crates/relayer/src/config/proof_specs.rs +++ b/crates/relayer/src/config/proof_specs.rs @@ -19,7 +19,7 @@ pub fn serialize( struct ProofSpecsVisitor; -impl<'de> de::Visitor<'de> for ProofSpecsVisitor { +impl de::Visitor<'_> for ProofSpecsVisitor { type Value = Option; fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { diff --git a/crates/relayer/src/util/pretty.rs b/crates/relayer/src/util/pretty.rs index 0b433bd289..9561188fe0 100644 --- a/crates/relayer/src/util/pretty.rs +++ b/crates/relayer/src/util/pretty.rs @@ -16,7 +16,7 @@ use crate::event::IbcEventWithHeight; pub struct PrettyAny<'a>(pub &'a Any); -impl<'a> Display for PrettyAny<'a> { +impl Display for PrettyAny<'_> { fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), FmtError> { write!(f, "Any {{ type_url: {} }}", self.0.type_url) } @@ -97,7 +97,7 @@ impl Display for PrettyDuration<'_> { /// For use in debug messages pub struct PrettyEvents<'a>(pub &'a [IbcEventWithHeight]); -impl<'a> Display for PrettyEvents<'a> { +impl Display for PrettyEvents<'_> { fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), FmtError> { writeln!(f, "events:")?; for v in self.0 { @@ -180,7 +180,7 @@ impl Display for PrettyIdentifiedConnection<'_> { pub struct PrettyOption<'a, T>(pub &'a Option); -impl<'a, T: Display> Display for PrettyOption<'a, T> { +impl Display for PrettyOption<'_, T> { fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), FmtError> { match &self.0 { Some(v) => write!(f, "{v}"), @@ -191,7 +191,7 @@ impl<'a, T: Display> Display for PrettyOption<'a, T> { pub struct PrettySlice<'a, T>(pub &'a [T]); -impl<'a, T: Display> Display for PrettySlice<'a, T> { +impl Display for PrettySlice<'_, T> { fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), FmtError> { write!(f, "[ ")?; let mut vec_iterator = self.0.iter().peekable(); diff --git a/tools/test-framework/src/chain/ext/async_icq.rs b/tools/test-framework/src/chain/ext/async_icq.rs index 88dd7f7aa6..ec0a59fa56 100644 --- a/tools/test-framework/src/chain/ext/async_icq.rs +++ b/tools/test-framework/src/chain/ext/async_icq.rs @@ -10,7 +10,7 @@ pub trait AsyncIcqMethodsExt { fn async_icq(&self, channel_id: &ChannelId, query_json: &str, from: &str) -> Result<(), Error>; } -impl<'a, Chain: Send> AsyncIcqMethodsExt for MonoTagged { +impl AsyncIcqMethodsExt for MonoTagged { fn update_oracle(&self, relayer: &str, fees: &str, init_args: &str) -> Result<(), Error> { let driver = *self.value(); diff --git a/tools/test-framework/src/chain/ext/authz.rs b/tools/test-framework/src/chain/ext/authz.rs index e6a8ad09a7..a87cda86b2 100644 --- a/tools/test-framework/src/chain/ext/authz.rs +++ b/tools/test-framework/src/chain/ext/authz.rs @@ -36,7 +36,7 @@ pub trait AuthzMethodsExt { ) -> Result<(), Error>; } -impl<'a, Chain: Send> AuthzMethodsExt for MonoTagged { +impl AuthzMethodsExt for MonoTagged { fn authz_grant( &self, granter: &str, diff --git a/tools/test-framework/src/chain/ext/crosschainquery.rs b/tools/test-framework/src/chain/ext/crosschainquery.rs index dbdbaa9500..35ad76d116 100644 --- a/tools/test-framework/src/chain/ext/crosschainquery.rs +++ b/tools/test-framework/src/chain/ext/crosschainquery.rs @@ -22,7 +22,7 @@ pub trait CrossChainQueryMethodsExt { fn assert_processed_cross_chain_query(&self) -> Result<(), Error>; } -impl<'a, Chain: Send> CrossChainQueryMethodsExt for MonoTagged { +impl CrossChainQueryMethodsExt for MonoTagged { fn assert_pending_cross_chain_query(&self) -> Result<(), Error> { assert_eventually_succeed( "waiting for a cross chain query request", diff --git a/tools/test-framework/src/chain/ext/fee.rs b/tools/test-framework/src/chain/ext/fee.rs index b3783304fa..8dc8f81c41 100644 --- a/tools/test-framework/src/chain/ext/fee.rs +++ b/tools/test-framework/src/chain/ext/fee.rs @@ -69,7 +69,7 @@ pub trait ChainFeeMethodsExt { ) -> Result, Error>; } -impl<'a, Chain: Send> ChainFeeMethodsExt for MonoTagged { +impl ChainFeeMethodsExt for MonoTagged { fn ibc_token_transfer_with_fee( &self, port_id: &TaggedPortIdRef<'_, Chain, Counterparty>, diff --git a/tools/test-framework/src/chain/ext/fee_grant.rs b/tools/test-framework/src/chain/ext/fee_grant.rs index ca8dcb156e..e63de5a6fc 100644 --- a/tools/test-framework/src/chain/ext/fee_grant.rs +++ b/tools/test-framework/src/chain/ext/fee_grant.rs @@ -11,7 +11,7 @@ pub trait FeeGrantMethodsExt { ) -> Result<(), Error>; } -impl<'a, Chain: Send> FeeGrantMethodsExt for MonoTagged { +impl FeeGrantMethodsExt for MonoTagged { fn feegrant_grant( &self, granter: &str, diff --git a/tools/test-framework/src/chain/ext/ica.rs b/tools/test-framework/src/chain/ext/ica.rs index b97b3ad2d8..427acd8003 100644 --- a/tools/test-framework/src/chain/ext/ica.rs +++ b/tools/test-framework/src/chain/ext/ica.rs @@ -27,7 +27,7 @@ pub trait InterchainAccountMethodsExt { ) -> Result, Error>; } -impl<'a, Chain: Send> InterchainAccountMethodsExt for MonoTagged { +impl InterchainAccountMethodsExt for MonoTagged { fn register_interchain_account_cli( &self, from: &MonoTagged, diff --git a/tools/test-framework/src/chain/ext/proposal.rs b/tools/test-framework/src/chain/ext/proposal.rs index ec7010323a..91c61b9f39 100644 --- a/tools/test-framework/src/chain/ext/proposal.rs +++ b/tools/test-framework/src/chain/ext/proposal.rs @@ -53,7 +53,7 @@ pub trait ChainProposalMethodsExt { ) -> Result<(), Error>; } -impl<'a, Chain: Send> ChainProposalMethodsExt for MonoTagged { +impl ChainProposalMethodsExt for MonoTagged { fn query_upgrade_proposal_height( &self, grpc_address: &Uri, diff --git a/tools/test-framework/src/chain/ext/transfer.rs b/tools/test-framework/src/chain/ext/transfer.rs index e1c50cd546..37f67d3929 100644 --- a/tools/test-framework/src/chain/ext/transfer.rs +++ b/tools/test-framework/src/chain/ext/transfer.rs @@ -86,7 +86,7 @@ pub trait ChainTransferMethodsExt { ) -> Result<(), Error>; } -impl<'a, Chain: Send> ChainTransferMethodsExt for MonoTagged { +impl ChainTransferMethodsExt for MonoTagged { fn ibc_transfer_token( &self, port_id: &TaggedPortIdRef, diff --git a/tools/test-framework/src/chain/ext/version.rs b/tools/test-framework/src/chain/ext/version.rs index be1d6582ff..3156ddacd9 100644 --- a/tools/test-framework/src/chain/ext/version.rs +++ b/tools/test-framework/src/chain/ext/version.rs @@ -7,7 +7,7 @@ pub trait ChainVersionMethodsExt { fn major_version(&self) -> Result; } -impl<'a, Chain: Send> ChainVersionMethodsExt for MonoTagged { +impl ChainVersionMethodsExt for MonoTagged { fn major_version(&self) -> Result { major_version(&self.value().command_path) } diff --git a/tools/test-framework/src/chain/ext/wasm_client.rs b/tools/test-framework/src/chain/ext/wasm_client.rs index cfcb657dd0..70cebfb430 100644 --- a/tools/test-framework/src/chain/ext/wasm_client.rs +++ b/tools/test-framework/src/chain/ext/wasm_client.rs @@ -27,7 +27,7 @@ pub trait StoreWasmClientCodeMethodsExt { ) -> Result; } -impl<'a, Chain: Send> StoreWasmClientCodeMethodsExt for MonoTagged { +impl StoreWasmClientCodeMethodsExt for MonoTagged { fn store_wasm_client_code( &self, wasm_path: &Path, diff --git a/tools/test-framework/src/chain/tagged.rs b/tools/test-framework/src/chain/tagged.rs index af7a73c06a..d6f2f510ad 100644 --- a/tools/test-framework/src/chain/tagged.rs +++ b/tools/test-framework/src/chain/tagged.rs @@ -110,7 +110,7 @@ pub trait TaggedChainDriverExt { fn query_auth_module(&self, module_name: &str) -> Result; } -impl<'a, Chain: Send> TaggedChainDriverExt for MonoTagged { +impl TaggedChainDriverExt for MonoTagged { fn chain_id(&self) -> TaggedChainIdRef { self.map_ref(|val| &val.chain_id) } diff --git a/tools/test-framework/src/framework/base.rs b/tools/test-framework/src/framework/base.rs index 0ba59ea9fb..e7e0415b5d 100644 --- a/tools/test-framework/src/framework/base.rs +++ b/tools/test-framework/src/framework/base.rs @@ -84,7 +84,7 @@ pub struct RunBasicTest<'a, Test> { pub test: &'a Test, } -impl<'a, Test, Overrides> PrimitiveTest for RunBasicTest<'a, Test> +impl PrimitiveTest for RunBasicTest<'_, Test> where Test: BasicTest, Test: HasOverrides, diff --git a/tools/test-framework/src/framework/binary/chain.rs b/tools/test-framework/src/framework/binary/chain.rs index 47eed73001..5e58a2ef58 100644 --- a/tools/test-framework/src/framework/binary/chain.rs +++ b/tools/test-framework/src/framework/binary/chain.rs @@ -201,7 +201,7 @@ where } } -impl<'a, Test, Overrides> BinaryNodeTest for RunBinaryChainTest<'a, Test> +impl BinaryNodeTest for RunBinaryChainTest<'_, Test> where Test: BinaryChainTest, Test: HasOverrides, @@ -240,7 +240,7 @@ where } } -impl<'a, Test, Overrides> InterchainSecurityChainTest for RunBinaryChainTest<'a, Test> +impl InterchainSecurityChainTest for RunBinaryChainTest<'_, Test> where Test: BinaryChainTest, Test: HasOverrides, @@ -279,7 +279,7 @@ where } } -impl<'a, Test: BinaryChainTest> BinaryChainTest for RunTwoWayBinaryChainTest<'a, Test> { +impl BinaryChainTest for RunTwoWayBinaryChainTest<'_, Test> { fn run( &self, config: &TestConfig, @@ -308,7 +308,7 @@ impl<'a, Test: BinaryChainTest> BinaryChainTest for RunTwoWayBinaryChainTest<'a, } } -impl<'a, Test, Overrides> BinaryChainTest for RunWithSupervisor<'a, Test> +impl BinaryChainTest for RunWithSupervisor<'_, Test> where Test: BinaryChainTest, Test: HasOverrides, @@ -332,7 +332,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunBinaryChainTest<'a, Test> +impl HasOverrides for RunBinaryChainTest<'_, Test> where Test: HasOverrides, { @@ -343,7 +343,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunTwoWayBinaryChainTest<'a, Test> +impl HasOverrides for RunTwoWayBinaryChainTest<'_, Test> where Test: HasOverrides, { diff --git a/tools/test-framework/src/framework/binary/channel.rs b/tools/test-framework/src/framework/binary/channel.rs index 00ae9efd89..6aef65d90c 100644 --- a/tools/test-framework/src/framework/binary/channel.rs +++ b/tools/test-framework/src/framework/binary/channel.rs @@ -205,7 +205,7 @@ where } } -impl<'a, Test, Overrides> BinaryConnectionTest for RunBinaryChannelTest<'a, Test> +impl BinaryConnectionTest for RunBinaryChannelTest<'_, Test> where Test: BinaryChannelTest, Test: HasOverrides, @@ -249,7 +249,7 @@ where } } -impl<'a, Test: BinaryChannelTest> BinaryChannelTest for RunTwoWayBinaryChannelTest<'a, Test> { +impl BinaryChannelTest for RunTwoWayBinaryChannelTest<'_, Test> { fn run( &self, config: &TestConfig, @@ -285,7 +285,7 @@ impl<'a, Test: BinaryChannelTest> BinaryChannelTest for RunTwoWayBinaryChannelTe } } -impl<'a, Test, Overrides> BinaryChannelTest for RunWithSupervisor<'a, Test> +impl BinaryChannelTest for RunWithSupervisor<'_, Test> where Test: BinaryChannelTest, Test: HasOverrides, @@ -310,7 +310,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunBinaryChannelTest<'a, Test> +impl HasOverrides for RunBinaryChannelTest<'_, Test> where Test: HasOverrides, { @@ -321,7 +321,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunTwoWayBinaryChannelTest<'a, Test> +impl HasOverrides for RunTwoWayBinaryChannelTest<'_, Test> where Test: HasOverrides, { diff --git a/tools/test-framework/src/framework/binary/connection.rs b/tools/test-framework/src/framework/binary/connection.rs index 9e96a7665e..d1fb5e7887 100644 --- a/tools/test-framework/src/framework/binary/connection.rs +++ b/tools/test-framework/src/framework/binary/connection.rs @@ -142,7 +142,7 @@ where } } -impl<'a, Test, Overrides> BinaryChainTest for RunBinaryConnectionTest<'a, Test> +impl BinaryChainTest for RunBinaryConnectionTest<'_, Test> where Test: BinaryConnectionTest, Test: HasOverrides, @@ -172,8 +172,8 @@ where } } -impl<'a, Test: BinaryConnectionTest> BinaryConnectionTest - for RunTwoWayBinaryConnectionTest<'a, Test> +impl BinaryConnectionTest + for RunTwoWayBinaryConnectionTest<'_, Test> { fn run( &self, @@ -210,7 +210,7 @@ impl<'a, Test: BinaryConnectionTest> BinaryConnectionTest } } -impl<'a, Test, Overrides> BinaryConnectionTest for RunWithSupervisor<'a, Test> +impl BinaryConnectionTest for RunWithSupervisor<'_, Test> where Test: BinaryConnectionTest, Test: HasOverrides, @@ -235,7 +235,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunBinaryConnectionTest<'a, Test> +impl HasOverrides for RunBinaryConnectionTest<'_, Test> where Test: HasOverrides, { @@ -246,7 +246,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunTwoWayBinaryConnectionTest<'a, Test> +impl HasOverrides for RunTwoWayBinaryConnectionTest<'_, Test> where Test: HasOverrides, { diff --git a/tools/test-framework/src/framework/binary/ics.rs b/tools/test-framework/src/framework/binary/ics.rs index e620ccfedc..7117fea5c2 100644 --- a/tools/test-framework/src/framework/binary/ics.rs +++ b/tools/test-framework/src/framework/binary/ics.rs @@ -47,7 +47,7 @@ where } } -impl<'a, Test, Overrides> BasicTest for RunInterchainSecurityChainTest<'a, Test> +impl BasicTest for RunInterchainSecurityChainTest<'_, Test> where Test: InterchainSecurityChainTest, Test: HasOverrides, @@ -104,7 +104,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunInterchainSecurityChainTest<'a, Test> +impl HasOverrides for RunInterchainSecurityChainTest<'_, Test> where Test: HasOverrides, { diff --git a/tools/test-framework/src/framework/binary/node.rs b/tools/test-framework/src/framework/binary/node.rs index ff59b4a13e..cea2cb1832 100644 --- a/tools/test-framework/src/framework/binary/node.rs +++ b/tools/test-framework/src/framework/binary/node.rs @@ -101,7 +101,7 @@ pub struct RunSingleNodeTest<'a, Test> { pub test: &'a Test, } -impl<'a, Test, Overrides> BasicTest for RunBinaryNodeTest<'a, Test> +impl BasicTest for RunBinaryNodeTest<'_, Test> where Test: BinaryNodeTest, Test: HasOverrides, @@ -135,7 +135,7 @@ where } } -impl<'a, Test, Overrides> BasicTest for RunSingleNodeTest<'a, Test> +impl BasicTest for RunSingleNodeTest<'_, Test> where Test: BinaryNodeTest, Test: HasOverrides, @@ -159,7 +159,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunBinaryNodeTest<'a, Test> +impl HasOverrides for RunBinaryNodeTest<'_, Test> where Test: HasOverrides, { @@ -170,7 +170,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunSingleNodeTest<'a, Test> +impl HasOverrides for RunSingleNodeTest<'_, Test> where Test: HasOverrides, { diff --git a/tools/test-framework/src/framework/nary/chain.rs b/tools/test-framework/src/framework/nary/chain.rs index 4584ba2df7..7667ac42e4 100644 --- a/tools/test-framework/src/framework/nary/chain.rs +++ b/tools/test-framework/src/framework/nary/chain.rs @@ -123,7 +123,7 @@ pub struct RunSelfConnectedNaryChainTest<'a, Test, const SIZE: usize> { pub test: &'a Test, } -impl<'a, Test, Overrides, const SIZE: usize> NaryNodeTest for RunNaryChainTest<'a, Test, SIZE> +impl NaryNodeTest for RunNaryChainTest<'_, Test, SIZE> where Test: NaryChainTest, Test: HasOverrides, @@ -157,8 +157,8 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> NaryNodeTest<1> - for RunSelfConnectedNaryChainTest<'a, Test, SIZE> +impl NaryNodeTest<1> + for RunSelfConnectedNaryChainTest<'_, Test, SIZE> where Test: NaryChainTest, Test: HasOverrides, @@ -192,7 +192,7 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> NaryChainTest for RunWithSupervisor<'a, Test> +impl NaryChainTest for RunWithSupervisor<'_, Test> where Test: NaryChainTest, Test: HasOverrides, @@ -234,7 +234,7 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> HasOverrides for RunNaryChainTest<'a, Test, SIZE> +impl HasOverrides for RunNaryChainTest<'_, Test, SIZE> where Test: HasOverrides, { @@ -245,8 +245,8 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> HasOverrides - for RunSelfConnectedNaryChainTest<'a, Test, SIZE> +impl HasOverrides + for RunSelfConnectedNaryChainTest<'_, Test, SIZE> where Test: HasOverrides, { diff --git a/tools/test-framework/src/framework/nary/channel.rs b/tools/test-framework/src/framework/nary/channel.rs index 38896a2a2a..0f4fe189dd 100644 --- a/tools/test-framework/src/framework/nary/channel.rs +++ b/tools/test-framework/src/framework/nary/channel.rs @@ -157,8 +157,8 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> NaryConnectionTest - for RunNaryChannelTest<'a, Test, SIZE> +impl NaryConnectionTest + for RunNaryChannelTest<'_, Test, SIZE> where Test: NaryChannelTest, Test: HasOverrides, @@ -194,7 +194,7 @@ where } } -impl<'a, Test> NaryChannelTest<2> for RunBinaryAsNaryChannelTest<'a, Test> +impl NaryChannelTest<2> for RunBinaryAsNaryChannelTest<'_, Test> where Test: BinaryChannelTest, { @@ -210,7 +210,7 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> NaryChannelTest for RunWithSupervisor<'a, Test> +impl NaryChannelTest for RunWithSupervisor<'_, Test> where Test: NaryChannelTest, Test: HasOverrides, @@ -235,7 +235,7 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> HasOverrides for RunNaryChannelTest<'a, Test, SIZE> +impl HasOverrides for RunNaryChannelTest<'_, Test, SIZE> where Test: HasOverrides, { @@ -246,7 +246,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunBinaryAsNaryChannelTest<'a, Test> +impl HasOverrides for RunBinaryAsNaryChannelTest<'_, Test> where Test: HasOverrides, { diff --git a/tools/test-framework/src/framework/nary/connection.rs b/tools/test-framework/src/framework/nary/connection.rs index 6870d3be9e..6d54b1e11d 100644 --- a/tools/test-framework/src/framework/nary/connection.rs +++ b/tools/test-framework/src/framework/nary/connection.rs @@ -92,8 +92,8 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> NaryChainTest - for RunNaryConnectionTest<'a, Test, SIZE> +impl NaryChainTest + for RunNaryConnectionTest<'_, Test, SIZE> where Test: NaryConnectionTest, Test: HasOverrides, @@ -125,7 +125,7 @@ where } } -impl<'a, Test> NaryConnectionTest<2> for RunBinaryAsNaryConnectionTest<'a, Test> +impl NaryConnectionTest<2> for RunBinaryAsNaryConnectionTest<'_, Test> where Test: BinaryConnectionTest, { @@ -141,8 +141,8 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> NaryConnectionTest - for RunWithSupervisor<'a, Test> +impl NaryConnectionTest + for RunWithSupervisor<'_, Test> where Test: NaryConnectionTest, Test: HasOverrides, @@ -167,7 +167,7 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> HasOverrides for RunNaryConnectionTest<'a, Test, SIZE> +impl HasOverrides for RunNaryConnectionTest<'_, Test, SIZE> where Test: HasOverrides, { @@ -178,7 +178,7 @@ where } } -impl<'a, Test, Overrides> HasOverrides for RunBinaryAsNaryConnectionTest<'a, Test> +impl HasOverrides for RunBinaryAsNaryConnectionTest<'_, Test> where Test: HasOverrides, { diff --git a/tools/test-framework/src/framework/nary/node.rs b/tools/test-framework/src/framework/nary/node.rs index cea7c81ac4..2ea2379e25 100644 --- a/tools/test-framework/src/framework/nary/node.rs +++ b/tools/test-framework/src/framework/nary/node.rs @@ -45,7 +45,7 @@ pub struct RunNaryNodeTest<'a, Test, const SIZE: usize> { pub test: &'a Test, } -impl<'a, Test, Overrides, const SIZE: usize> BasicTest for RunNaryNodeTest<'a, Test, SIZE> +impl BasicTest for RunNaryNodeTest<'_, Test, SIZE> where Test: NaryNodeTest, Test: HasOverrides, @@ -75,7 +75,7 @@ where } } -impl<'a, Test, Overrides, const SIZE: usize> HasOverrides for RunNaryNodeTest<'a, Test, SIZE> +impl HasOverrides for RunNaryNodeTest<'_, Test, SIZE> where Test: HasOverrides, { diff --git a/tools/test-framework/src/framework/supervisor.rs b/tools/test-framework/src/framework/supervisor.rs index f43ea89536..e5c9f1933b 100644 --- a/tools/test-framework/src/framework/supervisor.rs +++ b/tools/test-framework/src/framework/supervisor.rs @@ -46,7 +46,7 @@ impl<'a, Test> RunWithSupervisor<'a, Test> { } } -impl<'a, Test, Overrides> HasOverrides for RunWithSupervisor<'a, Test> +impl HasOverrides for RunWithSupervisor<'_, Test> where Test: HasOverrides, { diff --git a/tools/test-framework/src/ibc/token.rs b/tools/test-framework/src/ibc/token.rs index ac7b6785ad..7300304d18 100644 --- a/tools/test-framework/src/ibc/token.rs +++ b/tools/test-framework/src/ibc/token.rs @@ -54,7 +54,7 @@ impl TaggedTokenExt for TaggedToken { } } -impl<'a, Chain> TaggedTokenExt for TaggedTokenRef<'a, Chain> { +impl TaggedTokenExt for TaggedTokenRef<'_, Chain> { fn denom(&self) -> TaggedDenomRef { self.map_ref(|t| &t.denom) } @@ -87,7 +87,7 @@ impl TaggedDenomExt for TaggedDenom { } } -impl<'a, Chain> TaggedDenomExt for TaggedDenomRef<'a, Chain> { +impl TaggedDenomExt for TaggedDenomRef<'_, Chain> { fn with_amount(&self, amount: impl Into) -> TaggedToken { self.map(|denom| Token { denom: (*denom).clone(), diff --git a/tools/test-framework/src/types/env.rs b/tools/test-framework/src/types/env.rs index 7028aa8b32..ba0986f442 100644 --- a/tools/test-framework/src/types/env.rs +++ b/tools/test-framework/src/types/env.rs @@ -66,7 +66,7 @@ impl EnvWriter for BTreeMap { } } -impl<'a, Writer: EnvWriter> EnvWriter for PrefixEnvWriter<'a, Writer> { +impl EnvWriter for PrefixEnvWriter<'_, Writer> { fn write_env(&mut self, key: &str, value: &str) { self.writer .write_env(&format!("{}_{}", self.prefix, key), value); diff --git a/tools/test-framework/src/types/single/node.rs b/tools/test-framework/src/types/single/node.rs index ae4d0f34bb..4abdea72b8 100644 --- a/tools/test-framework/src/types/single/node.rs +++ b/tools/test-framework/src/types/single/node.rs @@ -103,7 +103,7 @@ impl TaggedFullNodeExt for MonoTagged { } } -impl<'a, Chain> TaggedFullNodeExt for MonoTagged { +impl TaggedFullNodeExt for MonoTagged { fn chain_id(&self) -> MonoTagged { self.map_ref(|c| &c.chain_driver.chain_id) } diff --git a/tools/test-framework/src/types/tagged/dual.rs b/tools/test-framework/src/types/tagged/dual.rs index 605f15820c..25eb15eab6 100644 --- a/tools/test-framework/src/types/tagged/dual.rs +++ b/tools/test-framework/src/types/tagged/dual.rs @@ -310,7 +310,7 @@ impl Tagged { } } -impl<'a, TagA, TagB, Value: Clone> Tagged { +impl Tagged { /** Convert a [`Clone`]eable tagged reference into a tagged value. @@ -376,7 +376,7 @@ impl Tagged> { } } -impl<'a, TagA, TagB, Value> AsRef for Tagged { +impl AsRef for Tagged { fn as_ref(&self) -> &Value { self.value() } diff --git a/tools/test-framework/src/types/tagged/mono.rs b/tools/test-framework/src/types/tagged/mono.rs index a1e8a1f448..9611638a55 100644 --- a/tools/test-framework/src/types/tagged/mono.rs +++ b/tools/test-framework/src/types/tagged/mono.rs @@ -220,7 +220,7 @@ impl Tagged { } } -impl<'a, Tag, Value: Clone> Tagged { +impl Tagged { /** Convert a [`Clone`]eable tagged reference into a tagged value. @@ -302,7 +302,7 @@ impl Tagged> { } } -impl<'a, Tag, Value> AsRef for Tagged { +impl AsRef for Tagged { fn as_ref(&self) -> &Value { self.value() } diff --git a/tools/test-framework/src/types/wallet.rs b/tools/test-framework/src/types/wallet.rs index 9886c19cbe..89b75f5b82 100644 --- a/tools/test-framework/src/types/wallet.rs +++ b/tools/test-framework/src/types/wallet.rs @@ -136,7 +136,7 @@ impl TaggedWallet for MonoTagged { } } -impl<'a, Chain> TaggedWallet for MonoTagged { +impl TaggedWallet for MonoTagged { fn id(&self) -> MonoTagged { self.map_ref(|w| &w.id) } @@ -168,7 +168,7 @@ impl TaggedTestWalletsExt for MonoTagged { } } -impl<'a, Chain> TaggedTestWalletsExt for MonoTagged { +impl TaggedTestWalletsExt for MonoTagged { fn validator(&self) -> MonoTagged { self.map_ref(|w| &w.validator) }