use .into() because it's easier

master
rasul 5 years ago
parent 7dbd2fa388
commit 5b74fa4a69

@ -28,6 +28,8 @@ pub struct Config {
pub template_directory: PathBuf, pub template_directory: PathBuf,
#[serde(default)] #[serde(default)]
pub static_directory: PathBuf, pub static_directory: PathBuf,
#[serde(default)]
pub salt: String,
} }
impl Default for Config { impl Default for Config {
@ -37,9 +39,10 @@ impl Default for Config {
url: "http://127.0.0.1:9214".into(), url: "http://127.0.0.1:9214".into(),
log_level: LogLevel::info, log_level: LogLevel::info,
log_file: None, log_file: None,
data_directory: PathBuf::from("data"), data_directory: "data".into(),
template_directory: PathBuf::from("templates"), template_directory: "templates".into(),
static_directory: PathBuf::from("static"), static_directory: "static".into(),
salt: "salt and pepper".into(),
} }
} }
} }

Loading…
Cancel
Save