Fix DimensionsMismatch error message

The values passed to write! were shifted 1 to the left.

Fixes #591
This commit is contained in:
sum-elier 2020-11-01 09:21:42 -05:00
parent f46431600c
commit 2b1d438ad4

View File

@ -112,7 +112,7 @@ impl fmt::Display for Error {
write!(f,
"The number of RGBA pixels ({:?}) does not match the provided \
dimensions ({:?}x{:?}).",
width, height, pixel_count,
pixel_count, width, height,
)
}
Error::OsError(e) => write!(