mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 15:38:32 +08:00
refactor: adjust all path methods and reduce unwrap
This commit is contained in:
1 parent
a786023160
commit
ce2d4498e1
11 files changed
+204
-181
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user