Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kurotych committed Jul 25, 2024
1 parent 5c27966 commit 8707813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_tracing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn record<T>(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]) {
Expand Down
4 changes: 2 additions & 2 deletions iot_packet_verifier/src/pending.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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(())
Expand Down

0 comments on commit 8707813

Please sign in to comment.