chore: 清理大量未使用的变量、方法及结构体警告

This commit is contained in:
2026-05-13 13:54:20 +08:00
parent b1ad68c7b5
commit 679db5b1db
7 changed files with 1115 additions and 6 deletions

View File

@@ -41,10 +41,10 @@ pub fn get_editor() -> String {
.or_else(|_| std::env::var("VISUAL"))
.unwrap_or_else(|_| {
if cfg!(target_os = "windows") {
if let Ok(code) = which::which("code") {
if let Ok(_code) = which::which("code") {
return "code --wait".to_string();
}
if let Ok(notepad) = which::which("notepad") {
if let Ok(_notepad) = which::which("notepad") {
return "notepad".to_string();
}
"notepad".to_string()