File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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/// }
You can’t perform that action at this time.
0 commit comments