fix: fix clippy error

This commit is contained in:
Kuingsmile
2025-07-10 13:40:21 +08:00
parent 23095dba6b
commit a70b576e1e

View File

@@ -80,7 +80,7 @@ pub async fn rclone_list_config(
) -> Result<Value, String> {
let api = RcloneApi::new();
let text = api.post_text("config/dump").await?;
let all: Value = serde_json::from_str(&text).map_err(|e| format!("Invalid JSON: {}", e))?;
let all: Value = serde_json::from_str(&text).map_err(|e| format!("Invalid JSON: {e}"))?;
let remotes = match (remote_type.as_str(), all.as_object()) {
("", _) => all.clone(),
(t, Some(map)) => {