From a0d5a5c0a3527f321dd279e3fc178fa5beacaef8 Mon Sep 17 00:00:00 2001 From: Tsachi Herman <24438559+tsachiherman@users.noreply.github.com> Date: Mon, 12 Feb 2024 08:12:30 -0500 Subject: [PATCH] clippy --- xps-gateway/tests/integration_test.rs | 12 ++++++------ xps-gateway/tests/integration_util/mod.rs | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/xps-gateway/tests/integration_test.rs b/xps-gateway/tests/integration_test.rs index 197d363..8788674 100644 --- a/xps-gateway/tests/integration_test.rs +++ b/xps-gateway/tests/integration_test.rs @@ -47,10 +47,10 @@ async fn test_send_message() -> Result<(), Error> { .await?; let message = Message { - conversation_id: conversation_id, - payload: payload, + conversation_id, + payload, identity: me.address(), - signature: signature, + signature, }; let pre_nonce = context.conversation.nonce(me.address()).call().await?; @@ -87,10 +87,10 @@ async fn test_send_message_fail() -> Result<(), Error> { .await?; let message = Message { - conversation_id: conversation_id, - payload: payload, + conversation_id, + payload, identity: me.address(), - signature: signature, + signature, }; let pre_nonce = context.conversation.nonce(me.address()).call().await?; diff --git a/xps-gateway/tests/integration_util/mod.rs b/xps-gateway/tests/integration_util/mod.rs index ea6f3a5..e6711ce 100644 --- a/xps-gateway/tests/integration_util/mod.rs +++ b/xps-gateway/tests/integration_util/mod.rs @@ -106,7 +106,7 @@ where async fn deploy_to_anvil(anvil: &AnvilInstance) -> (Address, Address) { let wallet: LocalWallet = anvil.keys()[0].clone().into(); - let client = client(&anvil, wallet).await; + let client = client(anvil, wallet).await; let registry = DIDRegistry::deploy(client.clone(), ()) .unwrap() @@ -144,7 +144,7 @@ pub async fn get_user( index: usize, ) -> Arc, LocalWallet>> { let wallet: LocalWallet = anvil.keys()[index].clone().into(); - client(&anvil, wallet).await + client(anvil, wallet).await } static INIT: Once = Once::new();