diff options
| author | 2023-01-28 18:34:14 +0100 | |
|---|---|---|
| committer | 2023-01-28 18:34:14 +0100 | |
| commit | cffffff2ddffc6e8d4e430c94ba9d89e4acda44c (patch) | |
| tree | 2057c57df0c36096d1c3cd6334bc16e767f8169e /src | |
| parent | 818ae4977a36c30a61492f85afa96e261c5d7167 (diff) | |
| parent | 42b1bfe66d2407901c1ae640f80ce9e0d3c64b60 (diff) | |
| download | iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.tar.gz iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.tar.bz2 iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.zip | |
Merge pull request #1681 from pop-os/fix-lints
Fix Clippy Lints
Diffstat (limited to '')
| -rw-r--r-- | src/window/icon.rs | 15 | 
1 files changed, 6 insertions, 9 deletions
| diff --git a/src/window/icon.rs b/src/window/icon.rs index bacad41a..d57eb79c 100644 --- a/src/window/icon.rs +++ b/src/window/icon.rs @@ -133,10 +133,9 @@ impl fmt::Display for Error {              Error::InvalidData { byte_count } => {                  write!(                      f, -                    "The provided RGBA data (with length {:?}) isn't divisble by \ +                    "The provided RGBA data (with length {byte_count:?}) isn't divisble by \                  4. Therefore, it cannot be safely interpreted as 32bpp RGBA \ -                pixels.", -                    byte_count, +                pixels."                  )              }              Error::DimensionsMismatch { @@ -146,20 +145,18 @@ impl fmt::Display for Error {              } => {                  write!(                      f, -                    "The number of RGBA pixels ({:?}) does not match the provided \ -                dimensions ({:?}x{:?}).", -                    pixel_count, width, height, +                    "The number of RGBA pixels ({pixel_count:?}) does not match the provided \ +                dimensions ({width:?}x{height:?})."                  )              }              Error::OsError(e) => write!(                  f,                  "The underlying OS failed to create the window \ -                icon: {:?}", -                e +                icon: {e:?}"              ),              #[cfg(feature = "image_rs")]              Error::ImageError(e) => { -                write!(f, "Unable to create icon from a file: {:?}", e) +                write!(f, "Unable to create icon from a file: {e:?}")              }          }      } | 
