FIX: đã sửa bổ sung tauri 2
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user