- Removed unused `id` and `app_state` fields from `ChatPanel`; updated constructor to accept but ignore the state, reducing memory footprint. - Switched database access in `ChatPanel` from a raw `Mutex` lock to a connection pool (`app_state.conn.get()`), improving concurrency and error handling. - Reordered and cleaned up imports in `status_panel.rs` and formatted struct fields for readability. - Updated VS Code launch configuration to pass `--noui` argument, enabling headless mode for debugging. - Bumped several crate versions in `Cargo.lock` (e.g., `bitflags` to 2.10.0, `syn` to 2.0.108, `cookie` to 0.16.2) and added the new `ashpd` dependency, aligning the project with latest library releases.
6 lines
No EOL
420 B
Markdown
6 lines
No EOL
420 B
Markdown
- On code return identifiers/characters in English language, no invalid tokens!
|
|
- Do not emit any comments, and remove any existing ones in Rust/HTML.
|
|
- Compact the code emission where possible.
|
|
- On code change, ensure cargo check cycle to remove warnings and errors.
|
|
- Never use defaults or magic values in code (never unwrap_or_else or similar)
|
|
- Check borrow, clone, types, common Rust errors! Return 0 warning code! |