Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix clippy lints #26

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/decoding/extrinsic_decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ impl<'info, TypeId> NamedArg<'info, TypeId> {
}
}

impl<'info, TypeId> NamedArg<'info, TypeId> {
impl<TypeId> NamedArg<'_, TypeId> {
/// Take ownership of this named argument.
pub fn into_owned(self) -> NamedArg<'static, TypeId> {
NamedArg {
Expand Down
6 changes: 3 additions & 3 deletions src/decoding/extrinsic_type_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 } => {
Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions src/decoding/storage_type_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 } => {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/list_storage_entries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading