servo/rust-png — pull request #42 by SimonSapin (2014-08-26 18:13:37+00:00)
Title: For checking the color type before accessing pixels

… by making pixels fields of the enum variants.

This should help prevent bugs such as https://github.com/servo/servo/issues/3154

[breaking-change]

r? @metajack

This is just proposing the idea for now. I haven’t tried to port Servo for this change.