diff --git a/codegen/src/types/type_def_params.rs b/codegen/src/types/type_def_params.rs index ca556d5748..1208325c6c 100644 --- a/codegen/src/types/type_def_params.rs +++ b/codegen/src/types/type_def_params.rs @@ -65,7 +65,7 @@ impl TypeDefParameters { } } -impl<'a> quote::ToTokens for TypeDefParameters { +impl quote::ToTokens for TypeDefParameters { fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { if !self.params.is_empty() { let params = &self.params; diff --git a/metadata/src/lib.rs b/metadata/src/lib.rs index 1b0c322f3f..8626893d00 100644 --- a/metadata/src/lib.rs +++ b/metadata/src/lib.rs @@ -72,9 +72,6 @@ fn get_field_hash( if let Some(name) = field.name() { bytes = xor(bytes, hash(name.as_bytes())); } - if let Some(name) = field.type_name() { - bytes = xor(bytes, hash(name.as_bytes())); - } bytes } diff --git a/subxt/src/events/event_subscription.rs b/subxt/src/events/event_subscription.rs index c201d6568c..c9c729c60b 100644 --- a/subxt/src/events/event_subscription.rs +++ b/subxt/src/events/event_subscription.rs @@ -47,9 +47,9 @@ pub use super::{ /// and is exposed only to be called via the codegen. It may /// break between minor releases. #[doc(hidden)] -pub async fn subscribe<'a, T: Config, Evs: Decode + 'static>( - client: &'a Client, -) -> Result, T, Evs>, BasicError> { +pub async fn subscribe( + client: &Client, +) -> Result, T, Evs>, BasicError> { let block_subscription = client.rpc().subscribe_blocks().await?; Ok(EventSubscription::new(client, block_subscription)) } @@ -60,9 +60,9 @@ pub async fn subscribe<'a, T: Config, Evs: Decode + 'static>( /// and is exposed only to be called via the codegen. It may /// break between minor releases. #[doc(hidden)] -pub async fn subscribe_finalized<'a, T: Config, Evs: Decode + 'static>( - client: &'a Client, -) -> Result, T, Evs>, BasicError> { +pub async fn subscribe_finalized( + client: &Client, +) -> Result, T, Evs>, BasicError> { // fetch the last finalised block details immediately, so that we'll get // events for each block after this one. let last_finalized_block_hash = client.rpc().finalized_head().await?; diff --git a/testing/integration-tests/src/metadata/validation.rs b/testing/integration-tests/src/metadata/validation.rs index e03d25fe1c..80480ed1b8 100644 --- a/testing/integration-tests/src/metadata/validation.rs +++ b/testing/integration-tests/src/metadata/validation.rs @@ -75,8 +75,7 @@ async fn full_metadata_check() { assert_eq!( new_api .validate_metadata() - .err() - .expect("Validation should fail for incompatible metadata"), + .expect_err("Validation should fail for incompatible metadata"), ::subxt::MetadataError::IncompatibleMetadata ); }