From d00ac3056b747edb91343350173ee4326ab1ab72 Mon Sep 17 00:00:00 2001 From: endernon Date: Sun, 15 Dec 2024 16:59:28 +0000 Subject: [PATCH] make the function a bit faster in release mode --- src/idk/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idk/mod.rs b/src/idk/mod.rs index a1dac08..3db930f 100644 --- a/src/idk/mod.rs +++ b/src/idk/mod.rs @@ -38,7 +38,7 @@ impl Chunk { } pub fn fix(mut bytes: Vec) -> Vec { - let mut bufread = Cursor::new(bytes.clone()); + let mut bufread = Cursor::new(bytes); // read the png header let mut header = [0; 8];