From 81c145db1ed08178ff89be78f12ecc05bccbdc20 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Fri, 16 Feb 2024 18:36:57 +0100 Subject: [PATCH] remove comments --- subxt/src/config/extrinsic_params.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/subxt/src/config/extrinsic_params.rs b/subxt/src/config/extrinsic_params.rs index 1d64caedf3..f0971b5caa 100644 --- a/subxt/src/config/extrinsic_params.rs +++ b/subxt/src/config/extrinsic_params.rs @@ -83,7 +83,7 @@ pub trait ExtrinsicParamsEncoder: 'static { /// Like the `From` trait, if value is Some(_), but it lets us circumvent the orphan rule, because we want to implement /// `DefaultOrFrom
` for `()`, such that DefaultOrFrom
is implemented by `((),(),(),CheckMortalityParams)`, if `CheckMortalityParams` implements `DefaultFrom
` pub trait DefaultOrFrom { - /// If value + /// If value is None, Self is constructed as some default value. Otherwise it takes the value of `T` into account. fn default_or_from(value: Option<&T>) -> Self; } @@ -93,9 +93,6 @@ impl DefaultOrFrom for () { macro_rules! impl_default_from_tuples { ($($ident:ident),+) => { - // We do some magic when the tuple is wrapped in AnyOf. We - // look at the metadata, and use this to select and make use of only the extensions - // that we actually need for the chain we're dealing with. impl DefaultOrFrom for ($($ident,)+) where $($ident: DefaultOrFrom,)+ @@ -109,7 +106,7 @@ macro_rules! impl_default_from_tuples { } } -// Note: these implementations are necessary for AnyOf to work properly where arbitrary tuples are the `OtherParams`. +// Note: these implementations are necessary, such that `DefaultOrFrom` works with `AnyOf` where arbitrary tuples are the `OtherParams`. #[rustfmt::skip] const _: () = { impl_default_from_tuples!(A);