🐛 bug: used the wrong PathBuf function in resolving the merge
parent
134035f198
commit
16aaac0965
|
@ -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,
|
||||
|
|
|
@ -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 (),
|
||||
|
|
Loading…
Reference in New Issue