fix: clippy 自动修复冗余闭包
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ fn main() -> anyhow::Result<()> {
|
||||
let logo_bytes = args
|
||||
.logo
|
||||
.as_ref()
|
||||
.map(|p| fs::read(p))
|
||||
.map(fs::read)
|
||||
.transpose()
|
||||
.map_err(|e| anyhow::anyhow!("无法读取 logo 文件: {e}"))?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user