@@ -24,7 +24,6 @@ pub struct Settings {
2424 pub initializers : Option < Initializers > ,
2525 pub features : Features ,
2626 pub loco_version_text : String ,
27- pub template_dir : String ,
2827 pub os : OS ,
2928}
3029
@@ -61,7 +60,7 @@ impl From<AssetsOption> for Option<Asset> {
6160impl Settings {
6261 /// Creates a new [`Settings`] instance based on prompt selections.
6362 #[ must_use]
64- pub fn from_wizard ( package_name : & str , template_dir : & str , prompt_selection : & wizard:: Selections , os : OS ) -> Self {
63+ pub fn from_wizard ( package_name : & str , prompt_selection : & wizard:: Selections , os : OS ) -> Self {
6564 let features = if prompt_selection. db . enable ( ) {
6665 Features :: default ( )
6766 } else {
@@ -74,7 +73,6 @@ impl Settings {
7473
7574 Self {
7675 package_name : package_name. to_string ( ) ,
77- template_dir : template_dir. to_string ( ) ,
7876 module_name : package_name. to_snake_case ( ) ,
7977 auth : prompt_selection. db . enable ( ) && prompt_selection. background . enable ( ) ,
8078 mailer : prompt_selection. db . enable ( ) && prompt_selection. background . enable ( ) ,
@@ -105,7 +103,6 @@ impl Default for Settings {
105103 mailer : Default :: default ( ) ,
106104 initializers : Default :: default ( ) ,
107105 features : Default :: default ( ) ,
108- template_dir : "base_template" . to_string ( ) ,
109106 loco_version_text : get_loco_version_text ( ) ,
110107 os : Default :: default ( ) ,
111108 }
0 commit comments