Skip to content

Commit ba14c30

Browse files
committed
style(clippy): setup_app_state map_err 冗余闭包消除(clippy 零警告回归)
1 parent 7a369cf commit ba14c30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎app/src-tauri/src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ pub fn run() {
439439
.setup(|app| {
440440
// AppState 装配(数据目录/DB/引擎池/可校准配置——拆至 app_setup.rs,
441441
// line-limit-exemptions 登记计划:lib.rs >600 硬拆落地)
442-
crate::app_setup::setup_app_state(app).map_err(|e| Box::<dyn std::error::Error>::from(e))?;
442+
crate::app_setup::setup_app_state(app).map_err(Box::<dyn std::error::Error>::from)?;
443443
// v0.16.1:浏览器原生右键菜单全局禁用——失败仅日志(降级=原生菜单,
444444
// 前端 contextmenu preventDefault 兜底;文本输入右键粘贴由前端自绘小菜单补齐)
445445
if let Some(main) = app.get_webview_window(crate::commands_window::MAIN_WINDOW_LABEL) {

0 commit comments

Comments
 (0)