From cc994b4303c1aac4fee9b172e5db172e56755bb9 Mon Sep 17 00:00:00 2001 From: Samer Afach Date: Tue, 6 Feb 2024 17:38:49 +0400 Subject: [PATCH] Appease clippy --- .../transaction/signature/inputsig/arbitrary_message/mod.rs | 4 ++-- .../signature/inputsig/arbitrary_message/tests.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/chain/transaction/signature/inputsig/arbitrary_message/mod.rs b/common/src/chain/transaction/signature/inputsig/arbitrary_message/mod.rs index 6c48f7e0de..e6252ef9c0 100644 --- a/common/src/chain/transaction/signature/inputsig/arbitrary_message/mod.rs +++ b/common/src/chain/transaction/signature/inputsig/arbitrary_message/mod.rs @@ -13,8 +13,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -const MESSAGE_MAGIC_PREFIX: &'static str = "===MINTLAYER MESSAGE BEGIN==="; -const MESSAGE_MAGIC_SUFFIX: &'static str = "===MINTLAYER MESSAGE END==="; +const MESSAGE_MAGIC_PREFIX: &str = "===MINTLAYER MESSAGE BEGIN==="; +const MESSAGE_MAGIC_SUFFIX: &str = "===MINTLAYER MESSAGE END==="; use thiserror::Error; diff --git a/common/src/chain/transaction/signature/inputsig/arbitrary_message/tests.rs b/common/src/chain/transaction/signature/inputsig/arbitrary_message/tests.rs index 24a64ba1ca..3ab511112d 100644 --- a/common/src/chain/transaction/signature/inputsig/arbitrary_message/tests.rs +++ b/common/src/chain/transaction/signature/inputsig/arbitrary_message/tests.rs @@ -380,7 +380,7 @@ fn signature_with_chosen_text() { let message = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.".as_bytes(); - let message_challenge = produce_message_challenge(&message); + let message_challenge = produce_message_challenge(message); // Ensure the challenge format hasn't changed let message_challenge_hex = "5c0d4f606f2b5c309026e3378ca265cb6b12bce9f82d21a07f6c92f6230ae349"; @@ -398,7 +398,7 @@ fn signature_with_chosen_text() { let signature_pubkeyhash = SignedArbitraryMessage::produce_uniparty_signature( &private_key, &destination_pubkeyhash, - &message, + message, ) .unwrap(); SignedArbitraryMessage::from_data(signature_pubkeyhash.raw_signature) @@ -419,7 +419,7 @@ fn signature_with_chosen_text() { let signature_pub_key = SignedArbitraryMessage::produce_uniparty_signature( &private_key, &destination_pub_key, - &message, + message, ) .unwrap(); SignedArbitraryMessage::from_data(signature_pub_key.raw_signature)