refactor(database): 移除不必要的state_guard释放操作

移除db_switch_connection函数中多余的drop(state_guard)调用,因为Rust的RAII机制会自动处理资源释放
This commit is contained in:
Yukino_fox
2026-03-22 19:41:59 +08:00
parent 5be6bd09d2
commit 25e79bc726
-1
View File
@@ -1169,7 +1169,6 @@ pub async fn db_switch_connection(
conn, conn,
) )
}; };
drop(state_guard);
{ {
let settings_db_path = sqlite_db_path(&app_handle)?; let settings_db_path = sqlite_db_path(&app_handle)?;