Skip to content

Commit

Permalink
chore(eth-bytecode-db): cargo clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rimrakhimov committed Dec 2, 2024
1 parent 4c66c7f commit 7c05a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl<'a> VerifierAllianceDbAction<'a> {
}
}

impl<'a> VerifierAllianceDbAction<'a> {
impl VerifierAllianceDbAction<'_> {
fn contract_address(&self) -> Option<blockscout_display_bytes::Bytes> {
match self {
VerifierAllianceDbAction::IgnoreDb => None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}

0 comments on commit 7c05a7e

Please sign in to comment.