diff --git a/cli/src/main.rs b/cli/src/main.rs index cb4ca36..0c70f03 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -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}"))?;