mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
Fix 1.89 clippy warnings (#2055)
* Fix 1.89 clippy warnings * WASM lightclient clippy fixes too
This commit is contained in:
@@ -223,7 +223,7 @@ where
|
||||
}
|
||||
|
||||
/// See [`subxt_core::blocks::ExtrinsicDetails::extrinsic_metadata()`].
|
||||
pub fn extrinsic_metadata(&self) -> Result<ExtrinsicMetadataDetails, Error> {
|
||||
pub fn extrinsic_metadata(&self) -> Result<ExtrinsicMetadataDetails<'_>, Error> {
|
||||
self.inner.extrinsic_metadata().map_err(Into::into)
|
||||
}
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ impl std::fmt::Display for ModuleError {
|
||||
|
||||
impl ModuleError {
|
||||
/// Return more details about this error.
|
||||
pub fn details(&self) -> Result<ModuleErrorDetails, MetadataError> {
|
||||
pub fn details(&self) -> Result<ModuleErrorDetails<'_>, MetadataError> {
|
||||
let pallet = self.metadata.pallet_by_index_err(self.pallet_index())?;
|
||||
let variant = pallet
|
||||
.error_variant_by_index(self.error_index())
|
||||
|
||||
@@ -118,7 +118,7 @@ impl<T: Config> EventDetails<T> {
|
||||
}
|
||||
|
||||
/// Fetch details from the metadata for this event.
|
||||
pub fn event_metadata(&self) -> EventMetadataDetails {
|
||||
pub fn event_metadata(&self) -> EventMetadataDetails<'_> {
|
||||
self.inner.event_metadata()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user