mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-07 08:40:16 +08:00
style: cargo fmt 格式化 Rust 代码,修复 CI 格式检查失败
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user