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

Loading…
Cancel
Save