refactor: clean editor runtime warnings
This commit is contained in:
@@ -406,9 +406,9 @@ UI / 浏览器可见项必须有真实浏览器截图或结构化 smoke 证据
|
||||
|
||||
| 文件 | 原大小 | 现大小 | 变化 |
|
||||
|------|--------|--------|------|
|
||||
| `lib.rs` | 9,873 行 | 8,181 行 | **-17%** |
|
||||
| `editor_runtime/mindmap_node_view.rs` | — | 909 行 | 新建 |
|
||||
| `editor_runtime/bridge_events.rs` | — | 149 行 | 新建 |
|
||||
| `lib.rs` | 9,873 行 | 8,189 行 | **-17%** |
|
||||
| `editor_runtime/mindmap_node_view.rs` | — | 906 行 | 新建 |
|
||||
| `editor_runtime/bridge_events.rs` | — | 154 行 | 新建 |
|
||||
| `editor_runtime/slash_actions.rs` | — | 237 行 | 新建 |
|
||||
| `editor_runtime/table_commands.rs` | — | 180 行 | 新建 |
|
||||
| `editor_runtime/bridge_dispatch.rs` | — | 86 行 | 新建 |
|
||||
@@ -459,3 +459,8 @@ UI / 浏览器可见项必须有真实浏览器截图或结构化 smoke 证据
|
||||
- 新增 `table_commands.rs`,迁出 table toolbar / option action、命令执行和 checked 状态计算。
|
||||
- 新增 `bridge_dispatch.rs`,迁出 `HostCommandKind` 及 host command payload 解析;真实 command 执行 match 仍留在 `lib.rs`。
|
||||
- 已验证:`cargo fmt --manifest-path rust/Cargo.toml --all --check`、`cargo check --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml`、`cargo test --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml command -- --test-threads=1`、wasm release build、`wasm-bindgen`、task489、task488、task479、临时 slash 插入简单表格 + 表格行 aux 命令 Playwright 回归。
|
||||
- 2026-05-25:Codex 完成本轮 warning / dead-code 清理。
|
||||
- 删除无调用方的 `command_sync::apply_document_update`、`dom_selection::selection_has_rich_marks`,移除 `lib.rs` 中未用 import / 变量。
|
||||
- 将 `should_auto_close_toolbar_overlays` 接回两个实际 auto-close 判断点,避免 helper 外置后仍有重复手写判定。
|
||||
- 对必须持有生命周期但 Rust 编译器无法直接观察用途的 mount handle、host envelope 反序列化字段加局部 `#[allow(dead_code)]`,不扩大到模块级。
|
||||
- 已验证:`cargo check --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml` 无 warning,`cargo test --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml -- --test-threads=1` 13/13 通过。
|
||||
|
||||
Reference in New Issue
Block a user