image-rs / image-png

PNG decoding and encoding library in pure Rust
https://docs.rs/png
Apache License 2.0
357 stars 140 forks source link

Use byte string literal for `ChunkType` #327

Closed MichaelMcDonnell closed 2 years ago

MichaelMcDonnell commented 2 years ago

I find the using a byte string literal easier to read than using arrays. The data still ends up in arrays, and you still get a compiler error if the byte string literal is longer than 4 bytes.

MichaelMcDonnell commented 2 years ago

Thanks!