diff options
author | 2021-05-24 20:26:56 +0700 | |
---|---|---|
committer | 2021-05-24 20:26:56 +0700 | |
commit | df971ac99beedb41537763f95f7b14d8bf7475a8 (patch) | |
tree | 70bf9d7aac84ae05f841b51dca6eb66c1769de93 /src/window | |
parent | 3918257883dba3cf260bd9764cb7b34101c435e6 (diff) | |
parent | 4cbc34524598756ce18cb25a664bc6f256d42851 (diff) | |
download | iced-df971ac99beedb41537763f95f7b14d8bf7475a8.tar.gz iced-df971ac99beedb41537763f95f7b14d8bf7475a8.tar.bz2 iced-df971ac99beedb41537763f95f7b14d8bf7475a8.zip |
Merge pull request #830 from Dispersia/upgrade-wgpu
Upgrade wgpu
Diffstat (limited to 'src/window')
-rw-r--r-- | src/window/icon.rs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/window/icon.rs b/src/window/icon.rs index 0d27b00e..287538b1 100644 --- a/src/window/icon.rs +++ b/src/window/icon.rs @@ -97,23 +97,25 @@ impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Error::InvalidData { byte_count } => { - write!(f, - "The provided RGBA data (with length {:?}) isn't divisble by \ + write!( + f, + "The provided RGBA data (with length {:?}) isn't divisble by \ 4. Therefore, it cannot be safely interpreted as 32bpp RGBA \ pixels.", - byte_count, - ) + byte_count, + ) } Error::DimensionsMismatch { width, height, pixel_count, } => { - write!(f, - "The number of RGBA pixels ({:?}) does not match the provided \ + write!( + f, + "The number of RGBA pixels ({:?}) does not match the provided \ dimensions ({:?}x{:?}).", - pixel_count, width, height, - ) + pixel_count, width, height, + ) } Error::OsError(e) => write!( f, |