Skip to content

Commit 4d0081a

Browse files
committed
Rename method as suggested in review
1 parent e2c8257 commit 4d0081a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub enum PixelFormat {
3838

3939
impl PixelFormat {
4040
/// Determine the size in bytes of each pixel in this format
41-
pub fn pixel_size(&self) -> usize {
41+
pub fn pixel_bytes(&self) -> usize {
4242
match self {
4343
PixelFormat::L8 => 1,
4444
PixelFormat::RGB24 => 3,

0 commit comments

Comments
 (0)