🐛 bug: used the wrong PathBuf function in resolving the merge

main
_ 2021-10-14 18:51:12 -05:00
parent 134035f198
commit 16aaac0965
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ pub async fn main (_args: &[OsString]) -> anyhow::Result <()> {
});
let state = Arc::new (FileServer::new (
file_server_root.unwrap_or_else (PathBuf::new),
file_server_root.unwrap_or_else (|| PathBuf::from (".")),
&PathBuf::new (),
name,
metrics_interval,

View File

@ -321,7 +321,7 @@ pub async fn run_server (
let file_server = file_server::FileServer::new (
config_file.file_server_root.clone (),
&asset_root.clone ().unwrap_or_else (PathBuf::new),
&asset_root.clone ().unwrap_or_else (|| PathBuf::from (".")),
config_file.name.clone (),
metrics_interval,
hidden_path.clone (),