Files
clash-proxy/src-tauri
Slinetrac fe7eb59f18 refactor(core): stabilize 'static backing for sidecar logging
Introduced `write_sidecar_log` to prevent temporary `format_args!` values
from dropping early.

- src-tauri/src/core/core.rs:60 — adds `write_sidecar_log`, which temporarily
  leaks the message into a `Box<str>`, builds the `Record`, writes it, then
  immediately reclaims the boxed string. The `unsafe` block is limited to
  `Box::from_raw` needed to undo `Box::leak`.
- src-tauri/src/core/core.rs:794, 802, 806 — all three sidecar events now route
  through this helper, reusing the returned string for the in-memory log and
  avoiding extra UTF-8 decoding.
fe7eb59f18 · 2025-10-09 16:46:11 +08:00
History
..
2025-02-27 03:18:23 +08:00
2025-09-10 09:49:06 +08:00
2024-06-20 13:50:28 +08:00
2024-09-11 08:15:03 +08:00
2022-11-12 11:37:23 +08:00
2025-06-21 21:22:20 +08:00