@@ -48,33 +48,25 @@ fn after_print_info(project_name: &String, config: UserSelected) {
48
48
success ( t ! ( "create_success" , project_name = project_name) . replace ( r"\n" , "\n " ) ) ;
49
49
match config. db_conn_type {
50
50
DbConnectionType :: Sqlx => {
51
- success (
52
- t ! ( "create_success_sqlx" , project_name = project_name) . replace ( r"\n" , "\n " ) ,
53
- ) ;
51
+ success ( t ! ( "create_success_sqlx" , project_name = project_name) . replace ( r"\n" , "\n " ) ) ;
54
52
}
55
53
DbConnectionType :: SeaOrm => {
56
- success (
57
- t ! ( "create_success_sea_orm" , project_name = project_name) . replace ( r"\n" , "\n " ) ,
58
- ) ;
54
+ success ( t ! ( "create_success_sea_orm" , project_name = project_name) . replace ( r"\n" , "\n " ) ) ;
59
55
}
60
- DbConnectionType :: Diesel => {
61
- match config. db_type {
62
- DbType :: Sqlite => {
63
- success ( t ! ( "create_success_sqlx_sqlite" ) . replace ( r"\n" , "\n " ) ) ;
64
- }
65
- _ => {
66
- success ( t ! ( "create_success_mysql_or_pgsql" ) . replace ( r"\n" , "\n " ) ) ;
67
- }
56
+ DbConnectionType :: Diesel => match config. db_type {
57
+ DbType :: Sqlite => {
58
+ success ( t ! ( "create_success_sqlx_sqlite" ) . replace ( r"\n" , "\n " ) ) ;
68
59
}
69
- }
70
- DbConnectionType :: Rbatis => {
71
- match config. db_type {
72
- DbType :: Mysql | DbType :: Postgres | DbType :: Mssql => {
73
- success ( t ! ( "create_success_rbatis" ) ) ;
74
- }
75
- _ => { }
60
+ _ => {
61
+ success ( t ! ( "create_success_mysql_or_pgsql" ) . replace ( r"\n" , "\n " ) ) ;
76
62
}
77
- }
63
+ } ,
64
+ DbConnectionType :: Rbatis => match config. db_type {
65
+ DbType :: Mysql | DbType :: Postgres | DbType :: Mssql => {
66
+ success ( t ! ( "create_success_rbatis" ) ) ;
67
+ }
68
+ _ => { }
69
+ } ,
78
70
_ => { }
79
71
}
80
72
}
0 commit comments