We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad1477 commit 1a01f6dCopy full SHA for 1a01f6d
chain/src/services/db.rs
@@ -38,9 +38,7 @@ pub async fn run_migrations(conn: Object) -> anyhow::Result<()> {
38
conn.interact(|transaction_conn| {
39
transaction_conn
40
.run_pending_migrations(MIGRATIONS)
41
- .map_err(|e| {
42
- anyhow!("Failed to run db migrations: {}", e.to_string())
43
- })?;
+ .map_err(|e| anyhow!("Failed to run db migrations: {e}"))?;
44
anyhow::Ok(())
45
})
46
.await
0 commit comments