🐛 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 (
|
let state = Arc::new (FileServer::new (
|
||||||
file_server_root.unwrap_or_else (PathBuf::new),
|
file_server_root.unwrap_or_else (|| PathBuf::from (".")),
|
||||||
&PathBuf::new (),
|
&PathBuf::new (),
|
||||||
name,
|
name,
|
||||||
metrics_interval,
|
metrics_interval,
|
||||||
|
|
|
@ -321,7 +321,7 @@ pub async fn run_server (
|
||||||
|
|
||||||
let file_server = file_server::FileServer::new (
|
let file_server = file_server::FileServer::new (
|
||||||
config_file.file_server_root.clone (),
|
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 (),
|
config_file.name.clone (),
|
||||||
metrics_interval,
|
metrics_interval,
|
||||||
hidden_path.clone (),
|
hidden_path.clone (),
|
||||||
|
|
Loading…
Reference in New Issue