From 1f8d6736e8efff8ec9e66aca3853ddc0fa1ee63d Mon Sep 17 00:00:00 2001 From: Tlntin <371043382@qq.com> Date: Wed, 7 Dec 2022 10:16:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81=E9=A3=8E?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 350d3ef..7e84c31 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -203,7 +203,8 @@ fn main() -> wry::Result<()> { let data_path = std::path::PathBuf::from(&config_path); #[cfg(target_os = "linux")] if !std::path::Path::new(&data_path).exists() { - std::fs::create_dir(&data_path).unwrap_or_else(|_| panic!("can't create dir {}", &config_path)); + std::fs::create_dir(&data_path) + .unwrap_or_else(|_| panic!("can't create dir {}", &config_path)); } #[cfg(target_os = "linux")] let mut web_content = WebContext::new(Some(data_path));