Skip to content

Commit 62f8a41

Browse files
committed
adress first review
1 parent 5cd672c commit 62f8a41

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cot-cli/tests/migration_generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ fn custom_migration_compile_test() {
195195
let source_files = vec![SourceFile::parse(PathBuf::from("main.rs"), src).unwrap()];
196196

197197
let migration_opt = generator
198-
.generate_custom_migration_from_files("m_0001_custom", source_files)
198+
.generate_custom_migration_from_files("custom", source_files)
199199
.unwrap();
200200
let MigrationAsSource {
201201
name: migration_name,

cot/src/db/migrations.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ impl Operation {
439439
/// use cot::db::migrations::{MigrationContext, Operation, migration_op};
440440
///
441441
/// #[migration_op]
442-
/// async fn forwards(ctx: MigrationContext) -> Result<()> {
442+
/// async fn forwards(ctx: MigrationContext<'_>) -> Result<()> {
443443
/// // do something
444444
/// Ok(())
445445
/// }
@@ -1622,13 +1622,13 @@ impl RemoveModelBuilder {
16221622
/// use cot::db::migrations::{MigrationContext, Operation, migration_op};
16231623
///
16241624
/// #[migration_op]
1625-
/// async fn forwards(ctx: MigrationContext) -> Result<()> {
1625+
/// async fn forwards(ctx: MigrationContext<'_>) -> Result<()> {
16261626
/// // do something
16271627
/// Ok(())
16281628
/// }
16291629
///
16301630
/// #[migration_op]
1631-
/// async fn backwards(ctx: MigrationContext) -> Result<()> {
1631+
/// async fn backwards(ctx: MigrationContext<'_>) -> Result<()> {
16321632
/// // undo something
16331633
/// Ok(())
16341634
/// }

0 commit comments

Comments
 (0)