From 7c05a7eb8acee46c753c41dc2cdb8418e9834a97 Mon Sep 17 00:00:00 2001 From: Rim Rakhimov Date: Mon, 2 Dec 2024 16:57:28 +0400 Subject: [PATCH] chore(eth-bytecode-db): cargo clippy fix --- .../eth-bytecode-db/src/verification/handlers/mod.rs | 2 +- .../src/m20241028_143125_initialize_schema_v1.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eth-bytecode-db/eth-bytecode-db/src/verification/handlers/mod.rs b/eth-bytecode-db/eth-bytecode-db/src/verification/handlers/mod.rs index 75cd2d891..959d990c0 100644 --- a/eth-bytecode-db/eth-bytecode-db/src/verification/handlers/mod.rs +++ b/eth-bytecode-db/eth-bytecode-db/src/verification/handlers/mod.rs @@ -167,7 +167,7 @@ impl<'a> VerifierAllianceDbAction<'a> { } } -impl<'a> VerifierAllianceDbAction<'a> { +impl VerifierAllianceDbAction<'_> { fn contract_address(&self) -> Option { match self { VerifierAllianceDbAction::IgnoreDb => None, diff --git a/eth-bytecode-db/eth-bytecode-db/verifier-alliance-migration/src/m20241028_143125_initialize_schema_v1.rs b/eth-bytecode-db/eth-bytecode-db/verifier-alliance-migration/src/m20241028_143125_initialize_schema_v1.rs index bffd994b0..b84892f1b 100644 --- a/eth-bytecode-db/eth-bytecode-db/verifier-alliance-migration/src/m20241028_143125_initialize_schema_v1.rs +++ b/eth-bytecode-db/eth-bytecode-db/verifier-alliance-migration/src/m20241028_143125_initialize_schema_v1.rs @@ -7,13 +7,13 @@ pub struct Migration; impl MigrationTrait for Migration { async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { let sql = include_str!("./migrations/initialize_schema_v1_up.sql"); - manager.get_connection().execute_unprepared(&sql).await?; + manager.get_connection().execute_unprepared(sql).await?; Ok(()) } async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { let sql = include_str!("./migrations/initialize_schema_v1_down.sql"); - manager.get_connection().execute_unprepared(&sql).await?; + manager.get_connection().execute_unprepared(sql).await?; Ok(()) } }