Skip to content

Commit 1a01f6d

Browse files
committed
clippy
1 parent 2ad1477 commit 1a01f6d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

chain/src/services/db.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ pub async fn run_migrations(conn: Object) -> anyhow::Result<()> {
3838
conn.interact(|transaction_conn| {
3939
transaction_conn
4040
.run_pending_migrations(MIGRATIONS)
41-
.map_err(|e| {
42-
anyhow!("Failed to run db migrations: {}", e.to_string())
43-
})?;
41+
.map_err(|e| anyhow!("Failed to run db migrations: {e}"))?;
4442
anyhow::Ok(())
4543
})
4644
.await

0 commit comments

Comments
 (0)