style: cargo fmt + clippy fix 全项目格式化
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user