@@ -48,33 +48,25 @@ fn after_print_info(project_name: &String, config: UserSelected) {
4848 success ( t ! ( "create_success" , project_name = project_name) . replace ( r"\n" , "\n " ) ) ;
4949 match config. db_conn_type {
5050 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 " ) ) ;
5452 }
5553 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 " ) ) ;
5955 }
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 " ) ) ;
6859 }
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 " ) ) ;
7662 }
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+ } ,
7870 _ => { }
7971 }
8072}
0 commit comments