From 045dd4ad30060261e0542348fb7bfb63cf3e3767 Mon Sep 17 00:00:00 2001 From: r4z_0 Date: Sun, 2 Nov 2025 04:03:15 +0100 Subject: [PATCH] removing unnecessary comments --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8033e63..912a8e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ fn main() { let path = Path::new(r"./image.png"); let file = File::create(path).unwrap(); let ref mut w = BufWriter::new(file); - let mut encoder = png::Encoder::new(w, 200, 200); // Width is 2 pixels and height is 1. + let mut encoder = png::Encoder::new(w, 200, 200); encoder.set_color(png::ColorType::Rgba); encoder.set_depth(png::BitDepth::Eight); // Adding text chunks to the header