Skip to content

Commit 147c1b6

Browse files
committed
fmt
1 parent e2a1966 commit 147c1b6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

crates/core/src/db/update.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ fn auto_migrate_database(
225225
.indexes
226226
.iter()
227227
.find(|index| index.index_name[..] == index_name[..])
228-
.ok_or_else(|| anyhow::anyhow!("Index `{index_name}` not found in table `{}`", old_table_def.name))?;
228+
.ok_or_else(|| {
229+
anyhow::anyhow!("Index `{index_name}` not found in table `{}`", old_table_def.name)
230+
})?;
229231

230232
log!(
231233
logger,
@@ -513,7 +515,8 @@ mod test {
513515
};
514516
let index_name = RawIdentifier::new(canonical_index_name.as_str());
515517
assert!(
516-
plan.steps.contains(&AutoMigrateStep::ChangeIndexSourceName(&index_name)),
518+
plan.steps
519+
.contains(&AutoMigrateStep::ChangeIndexSourceName(&index_name)),
517520
"plan steps: {:?}",
518521
plan.steps
519522
);

0 commit comments

Comments
 (0)