style: cargo fmt + clippy fix 全项目格式化

This commit is contained in:
2026-06-16 23:58:15 +08:00
parent 9201cd820c
commit 30af4ff607
16 changed files with 1298 additions and 165 deletions
+2 -5
View File
@@ -34,10 +34,7 @@ pub fn render_png(qr: &QrCode, module_size: u8) -> Vec<u8> {
}
let mut buf = Vec::new();
img.write_to(
&mut std::io::Cursor::new(&mut buf),
image::ImageFormat::Png,
)
.expect("PNG 编码失败");
img.write_to(&mut std::io::Cursor::new(&mut buf), image::ImageFormat::Png)
.expect("PNG 编码失败");
buf
}