fix: clippy 自动修复冗余闭包
This commit is contained in:
+1
-1
@@ -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}"))?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user