make the function a bit faster in release mode
This commit is contained in:
parent
98794a6dfc
commit
d00ac3056b
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ impl Chunk {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn fix(mut bytes: Vec<u8>) -> Vec<u8> {
|
pub fn fix(mut bytes: Vec<u8>) -> Vec<u8> {
|
||||||
let mut bufread = Cursor::new(bytes.clone());
|
let mut bufread = Cursor::new(bytes);
|
||||||
|
|
||||||
// read the png header
|
// read the png header
|
||||||
let mut header = [0; 8];
|
let mut header = [0; 8];
|
||||||
|
|
Loading…
Reference in a new issue