diff options
author | 2020-11-01 09:21:42 -0500 | |
---|---|---|
committer | 2020-11-01 09:21:42 -0500 | |
commit | 2b1d438ad48bf8113dbe064633e7e3d0ec9ac7f0 (patch) | |
tree | e6e19de5893c47fa1a688af9e1d006cd26c196f4 /src | |
parent | f46431600cb61d4e83e0ded1ca79525478436be3 (diff) | |
download | iced-2b1d438ad48bf8113dbe064633e7e3d0ec9ac7f0.tar.gz iced-2b1d438ad48bf8113dbe064633e7e3d0ec9ac7f0.tar.bz2 iced-2b1d438ad48bf8113dbe064633e7e3d0ec9ac7f0.zip |
Fix DimensionsMismatch error message
The values passed to write! were shifted 1 to the left.
Fixes #591
Diffstat (limited to 'src')
-rw-r--r-- | src/window/icon.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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!( |