diff --git a/src/decoding/extrinsic_decoder.rs b/src/decoding/extrinsic_decoder.rs index c72f74c..17cc1b2 100644 --- a/src/decoding/extrinsic_decoder.rs +++ b/src/decoding/extrinsic_decoder.rs @@ -417,7 +417,7 @@ impl<'info, TypeId> NamedArg<'info, TypeId> { } } -impl<'info, TypeId> NamedArg<'info, TypeId> { +impl NamedArg<'_, TypeId> { /// Take ownership of this named argument. pub fn into_owned(self) -> NamedArg<'static, TypeId> { NamedArg { diff --git a/src/decoding/extrinsic_type_info.rs b/src/decoding/extrinsic_type_info.rs index f2cd460..99feced 100644 --- a/src/decoding/extrinsic_type_info.rs +++ b/src/decoding/extrinsic_type_info.rs @@ -84,9 +84,9 @@ pub enum ExtrinsicInfoError<'a> { }, } -impl<'a> core::error::Error for ExtrinsicInfoError<'a> {} +impl core::error::Error for ExtrinsicInfoError<'_> {} -impl<'a> core::fmt::Display for ExtrinsicInfoError<'a> { +impl core::fmt::Display for ExtrinsicInfoError<'_> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { match self { ExtrinsicInfoError::PalletNotFound { index } => { @@ -139,7 +139,7 @@ impl<'a> core::fmt::Display for ExtrinsicInfoError<'a> { } } -impl<'a> ExtrinsicInfoError<'a> { +impl ExtrinsicInfoError<'_> { /// Take ownership of this error. pub fn into_owned(self) -> ExtrinsicInfoError<'static> { match self { diff --git a/src/decoding/storage_type_info.rs b/src/decoding/storage_type_info.rs index 686157c..63ec3f9 100644 --- a/src/decoding/storage_type_info.rs +++ b/src/decoding/storage_type_info.rs @@ -60,9 +60,9 @@ pub enum StorageInfoError<'a> { }, } -impl<'a> core::error::Error for StorageInfoError<'a> {} +impl core::error::Error for StorageInfoError<'_> {} -impl<'a> core::fmt::Display for StorageInfoError<'a> { +impl core::fmt::Display for StorageInfoError<'_> { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { match self { StorageInfoError::PalletNotFound { name } => { @@ -100,7 +100,7 @@ impl<'a> core::fmt::Display for StorageInfoError<'a> { } } -impl<'a> StorageInfoError<'a> { +impl StorageInfoError<'_> { /// Take ownership of this error, turning any lifetimes to `'static`. pub fn into_owned(self) -> StorageInfoError<'static> { match self { diff --git a/src/utils/list_storage_entries.rs b/src/utils/list_storage_entries.rs index 36367f4..ff329a4 100644 --- a/src/utils/list_storage_entries.rs +++ b/src/utils/list_storage_entries.rs @@ -81,7 +81,7 @@ pub struct StorageEntry<'a> { entry: Cow<'a, str>, } -impl<'a> StorageEntry<'a> { +impl StorageEntry<'_> { /// Take ownership of this storage entry, converting lifetimes to `'static` pub fn into_owned(self) -> StorageEntry<'static> { StorageEntry {