refactor: adjust all path methods and reduce unwrap

This commit is contained in:
GyDi committed 2022-11-18 10:26:39 +08:00
1 parent a786023160
commit ce2d4498e1
11 files changed
+204 -181

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ pub async fn put_configs() -> Result<()> {
let (url, headers) = clash_client_info()?;
let url = format!("{url}/configs");
let runtime_yaml = dirs::clash_runtime_yaml();
let runtime_yaml = dirs::clash_runtime_yaml()?;
let runtime_yaml = dirs::path_to_str(&runtime_yaml)?;
let mut data = HashMap::new();