mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 21:14:21 +08:00
refactor(database): 移除不必要的state_guard释放操作
移除db_switch_connection函数中多余的drop(state_guard)调用,因为Rust的RAII机制会自动处理资源释放
This commit is contained in:
@@ -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)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user