Skip to content

Commit 3aae025

Browse files
committed
admin/migrate: Inline harness variable
1 parent 15d780d commit 3aae025

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bin/crates-admin/migrate.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ pub async fn run(_opts: Opts) -> Result<(), Error> {
4747

4848
spawn_blocking(move || {
4949
info!("Migrating the database");
50-
let mut harness = HarnessWithOutput::write_to_stdout(&mut conn);
51-
harness
50+
HarnessWithOutput::write_to_stdout(&mut conn)
5251
.run_pending_migrations(MIGRATIONS)
5352
.map_err(|err| anyhow!("Failed to run migrations: {err}"))?;
5453

0 commit comments

Comments
 (0)