FIX: đã sửa bổ sung tauri 2

This commit is contained in:
2026-08-08 09:38:44 +07:00
parent e96aecfdf1
commit e9c710ec0b
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -3002,3 +3002,9 @@
- **FIX (src-tauri/src/lib.rs):** thêm `use tauri::Manager;`.
- **Các file ảnh hưởng:** src-tauri/src/lib.rs, wiki.md.
- **Ghi chú/Test:** chạy lại `npx tauri build` — compile tiếp (lỗi khác nếu có — thường là linker MSVC nếu thiếu VS Build Tools).
### [2026-08-08 09:15] Task: FIX tauri build (2) — lifetime `state` (thiếu ; sau if-let)
- **Lỗi Rust:** `error[E0597]: state does not live long enough` — temporary (MutexGuard) của `state.0.lock()` drop muộn hơn state.
- **FIX (src-tauri/src/lib.rs):** thêm `;` sau if-let block (temporary dropped sớm — theo gợi ý compiler).
- **Các file ảnh hưởng:** src-tauri/src/lib.rs, wiki.md.
- **Ghi chú/Test:** chạy lại `npx tauri build` — compile tiếp.