From 870781381a58dce498b0a4839f8333fcfa948992 Mon Sep 17 00:00:00 2001 From: Anatolii Kurotych Date: Thu, 25 Jul 2024 17:52:58 +0300 Subject: [PATCH] Fix clippy --- custom_tracing/src/lib.rs | 2 +- iot_packet_verifier/src/pending.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_tracing/src/lib.rs b/custom_tracing/src/lib.rs index 3d6ec0813..44ef00af3 100644 --- a/custom_tracing/src/lib.rs +++ b/custom_tracing/src/lib.rs @@ -51,7 +51,7 @@ pub fn record(field: &str, value: T) where T: std::fmt::Display, { - Span::current().record(field, &tracing::field::display(value)); + Span::current().record(field, tracing::field::display(value)); } pub fn record_b58(key: &str, pub_key: &[u8]) { diff --git a/iot_packet_verifier/src/pending.rs b/iot_packet_verifier/src/pending.rs index 362ef9c13..bbfd74fa8 100644 --- a/iot_packet_verifier/src/pending.rs +++ b/iot_packet_verifier/src/pending.rs @@ -154,7 +154,7 @@ impl PendingTables for PgPool { VALUES ($1, $2, $3, $4) "#, ) - .bind(&signature.to_string()) + .bind(signature.to_string()) .bind(payer) .bind(amount as i64) .bind(Utc::now()) @@ -195,7 +195,7 @@ impl<'a> PendingTablesTransaction<'a> for Transaction<'a, Postgres> { signature: &Signature, ) -> Result<(), sqlx::Error> { sqlx::query("DELETE FROM pending_txns WHERE signature = $1") - .bind(&signature.to_string()) + .bind(signature.to_string()) .execute(self) .await?; Ok(())