fix: clippy 自动修复冗余闭包

This commit is contained in:
2026-06-19 21:17:12 +08:00
parent b5bc944d71
commit 8e9e7e1b4c
+1 -1
View File
@@ -167,7 +167,7 @@ fn main() -> anyhow::Result<()> {
let logo_bytes = args let logo_bytes = args
.logo .logo
.as_ref() .as_ref()
.map(|p| fs::read(p)) .map(fs::read)
.transpose() .transpose()
.map_err(|e| anyhow::anyhow!("无法读取 logo 文件: {e}"))?; .map_err(|e| anyhow::anyhow!("无法读取 logo 文件: {e}"))?;