fix(ci): apply rustfmt to hermes_dashboard_start

`cargo fmt --check` 在 CI 上失败:hermes.rs:884 处的 `let log_file = …`
绑定语句宽度超出 rustfmt 默认 100 列阈值,需要把赋值表达式拆成
let-rhs 起始换行的形式。

不影响 Release tag build(release.yml 不跑 fmt/clippy),仅修 main
的 CI 红灯。
This commit is contained in:
晴天
2026-04-25 23:50:01 +08:00
parent 9ee99ead24
commit 88928b7397

View File

@@ -884,8 +884,8 @@ pub async fn hermes_dashboard_start() -> Result<Value, String> {
let home = hermes_home();
let log_path = home.join("dashboard-run.log");
let log_file = std::fs::File::create(&log_path)
.map_err(|e| format!("创建日志文件失败: {e}"))?;
let log_file =
std::fs::File::create(&log_path).map_err(|e| format!("创建日志文件失败: {e}"))?;
let log_err = log_file
.try_clone()
.map_err(|e| format!("克隆日志句柄失败: {e}"))?;