From 2b1d438ad48bf8113dbe064633e7e3d0ec9ac7f0 Mon Sep 17 00:00:00 2001 From: sum-elier <44838689+sum-elier@users.noreply.github.com> Date: Sun, 1 Nov 2020 09:21:42 -0500 Subject: [PATCH] Fix DimensionsMismatch error message The values passed to write! were shifted 1 to the left. Fixes #591 --- src/window/icon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window/icon.rs b/src/window/icon.rs index 15e0312d..0d27b00e 100644 --- a/src/window/icon.rs +++ b/src/window/icon.rs @@ -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!(