From 62e4912552f0d3a77cbc056144a97c161be3f1bf Mon Sep 17 00:00:00 2001 From: 5-23 Date: Wed, 22 May 2024 02:55:29 +0900 Subject: [PATCH] release: v1.3.1 --- src-tauri/src/main.rs | 6 ++++-- src-tauri/tauri.conf.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 8922f2a..f5c2505 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -106,9 +106,10 @@ fn discord_status(name: String) { #[tauri::command] #[cfg(not(target_os = "windows"))] fn custom_css() -> String { + #[allow(deprecated)] let home = std::env::home_dir().unwrap().to_str().unwrap().to_owned(); - std::fs::read_to_string(format!("{home}/.config/ny-music/theme.css")).unwrap_or_else(|e| { + std::fs::read_to_string(format!("{home}/.config/ny-music/theme.css")).unwrap_or_else(|_| { std::fs::create_dir(format!("{home}/.config")).unwrap_or_else(|_| {}); std::fs::create_dir(format!("{home}/.config/ny-music")).unwrap_or_else(|_| {}); @@ -125,9 +126,10 @@ fn custom_css() -> String { #[tauri::command] #[cfg(target_os = "windows")] fn custom_css() -> String { + #[allow(deprecated)] let home = std::env::home_dir().unwrap().to_str().unwrap().to_owned(); - std::fs::read_to_string(format!("{home}/.config/ny-music/theme.css")).unwrap_or_else(|e| { + std::fs::read_to_string(format!("{home}/.config/ny-music/theme.css")).unwrap_or_else(|_| { std::fs::create_dir(format!("{home}/.config")).unwrap_or_else(|_| {}); std::fs::create_dir(format!("{home}/.config/ny-music")).unwrap_or_else(|_| {}); diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 8d1f8c8..03a130e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "ny-music", - "version": "1.3.0" + "version": "1.3.1" }, "tauri": { "allowlist": {