Fix compile warning

This commit is contained in:
Asura
2022-09-02 01:20:48 -07:00
parent 03315a3bc4
commit 41241867b7
11 changed files with 15 additions and 23 deletions

View File

@@ -668,7 +668,6 @@ pub fn make_privacy_mode_msg(state: back_notification::PrivacyModeState) -> Mess
}
pub fn make_fd_to_json(fd: FileDirectory) -> String {
use serde_json::json;
let mut fd_json = serde_json::Map::new();
fd_json.insert("id".into(), json!(fd.id));
fd_json.insert("path".into(), json!(fd.path));