style: cargo fmt 格式化 Rust 代码,修复 CI 格式检查失败

This commit is contained in:
晴天
2026-03-04 12:20:59 +08:00
parent e62f270422
commit 7cd6bb9b1b
11 changed files with 250 additions and 208 deletions

View File

@@ -31,8 +31,7 @@ pub fn read_log_tail(log_name: String, lines: Option<u32>) -> Result<String, Str
return Ok(String::new());
}
let mut file = fs::File::open(&path)
.map_err(|e| format!("打开日志失败: {e}"))?;
let mut file = fs::File::open(&path).map_err(|e| format!("打开日志失败: {e}"))?;
let file_len = file
.metadata()
@@ -83,8 +82,7 @@ pub fn search_log(
return Ok(vec![]);
}
let mut file = fs::File::open(&path)
.map_err(|e| format!("打开日志失败: {e}"))?;
let mut file = fs::File::open(&path).map_err(|e| format!("打开日志失败: {e}"))?;
let file_len = file
.metadata()