mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-11 18:50:25 +08:00
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:
@@ -884,8 +884,8 @@ pub async fn hermes_dashboard_start() -> Result<Value, String> {
|
|||||||
|
|
||||||
let home = hermes_home();
|
let home = hermes_home();
|
||||||
let log_path = home.join("dashboard-run.log");
|
let log_path = home.join("dashboard-run.log");
|
||||||
let log_file = std::fs::File::create(&log_path)
|
let log_file =
|
||||||
.map_err(|e| format!("创建日志文件失败: {e}"))?;
|
std::fs::File::create(&log_path).map_err(|e| format!("创建日志文件失败: {e}"))?;
|
||||||
let log_err = log_file
|
let log_err = log_file
|
||||||
.try_clone()
|
.try_clone()
|
||||||
.map_err(|e| format!("克隆日志句柄失败: {e}"))?;
|
.map_err(|e| format!("克隆日志句柄失败: {e}"))?;
|
||||||
|
|||||||
Reference in New Issue
Block a user