fix: 修复编译错误 + cargo check 通过

- Recorder::new() 需要 RecordingMode 参数 → 改用 Recorder::full()
- export_path 借用问题 → clone 后传入 import_csv
- Result 未处理警告 → 添加 let _ =
- 安装 pkg-config + libudev-dev 系统依赖
- 配置 USTC cargo 国内镜像源
This commit is contained in:
2026-05-20 17:42:35 +08:00
parent 174adb5366
commit 2497cb93ff
2 changed files with 10 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ use crate::{
ui::{
ConfigPanelState, ConnectPanelState, FloatingPanelState, MatrixConfigState,
draw_config_panel, draw_connect_panel, draw_export_panel, draw_matrix_config_panel,
draw_scene_panel, draw_signal_chart, draw_stats_panel, draw_recording_toolbar,
draw_scene_panel, draw_stats_panel,
},
};
@@ -68,7 +68,7 @@ impl EskinDesktopApp {
config_panel: FloatingPanelState::new([840.0, 48.0], [128.0, 48.0]),
config_state: ConfigPanelState::default(),
stats_panel: FloatingPanelState::new([16.0, 520.0], [240.0, 48.0]),
recorder: Recorder::new(),
recorder: Recorder::full(),
export_panel: FloatingPanelState::new([16.0, 280.0], [16.0, 280.0]),
export_path: String::new(),
matrix_config_panel: FloatingPanelState::new([840.0, 280.0], [400.0, 48.0]),