diff options
author | 2021-04-12 23:23:47 -0700 | |
---|---|---|
committer | 2021-04-12 23:23:47 -0700 | |
commit | 983aa1b3665c6b546700767d21d73de72372ddad (patch) | |
tree | 3817ea9bcd373a099cfbfed155f8c489daf92865 /src | |
parent | 0722d5e3ec307fd82a1cc76593d17d83cf828943 (diff) | |
download | iced-983aa1b3665c6b546700767d21d73de72372ddad.tar.gz iced-983aa1b3665c6b546700767d21d73de72372ddad.tar.bz2 iced-983aa1b3665c6b546700767d21d73de72372ddad.zip |
Run cargo fmt
Diffstat (limited to 'src')
-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, |