From 600037e2cf7ecb91c3583e6a323fe2c895cf7e71 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Fri, 6 Oct 2023 14:13:58 +0200 Subject: [PATCH] fix formatting and clippy --- signer/src/lib.rs | 6 ++---- .../src/full_client/client/unstable_rpcs.rs | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/signer/src/lib.rs b/signer/src/lib.rs index dbba7e1468..5287b2b6ce 100644 --- a/signer/src/lib.rs +++ b/signer/src/lib.rs @@ -39,7 +39,5 @@ pub use secrecy::{ExposeSecret, SecretString}; // DeriveJunctions are the "path" part of these SecretUris. pub use crypto::{DeriveJunction, SecretUri, SecretUriError, DEV_PHRASE}; -#[cfg(all( - feature = "subxt", not(any(feature = "web", feature = "native")) -))] -compile_error!("subxt-signer: When using the 'subxt' feature, exactly one of the 'web' and 'native' features should be used."); \ No newline at end of file +#[cfg(all(feature = "subxt", not(any(feature = "web", feature = "native"))))] +compile_error!("subxt-signer: When using the 'subxt' feature, exactly one of the 'web' and 'native' features should be used."); diff --git a/testing/integration-tests/src/full_client/client/unstable_rpcs.rs b/testing/integration-tests/src/full_client/client/unstable_rpcs.rs index 2252abc3e4..f7670cd0e4 100644 --- a/testing/integration-tests/src/full_client/client/unstable_rpcs.rs +++ b/testing/integration-tests/src/full_client/client/unstable_rpcs.rs @@ -211,7 +211,7 @@ async fn chainhead_unstable_unpin() { let sub_id = blocks.subscription_id().unwrap(); assert!(rpc - .chainhead_unstable_unpin(sub_id.clone(), hash) + .chainhead_unstable_unpin(sub_id, hash) .await .is_ok()); // The block was already unpinned.