diff options
author | 2024-05-01 01:09:31 +0200 | |
---|---|---|
committer | 2024-05-01 01:09:31 +0200 | |
commit | f5bc336d699d0c6440f6d638a5a437baaabe1e43 (patch) | |
tree | fd0d568711f6c2fedab44024070787a5e1650f61 /runtime | |
parent | 45254ab88c6ca76759523069c2fb8734de626f02 (diff) | |
download | iced-f5bc336d699d0c6440f6d638a5a437baaabe1e43.tar.gz iced-f5bc336d699d0c6440f6d638a5a437baaabe1e43.tar.bz2 iced-f5bc336d699d0c6440f6d638a5a437baaabe1e43.zip |
Fix `clippy` lint in `runtime::window::screenshot`
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/src/window/screenshot.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/src/window/screenshot.rs b/runtime/src/window/screenshot.rs index bd277ddf..fb318110 100644 --- a/runtime/src/window/screenshot.rs +++ b/runtime/src/window/screenshot.rs @@ -80,9 +80,9 @@ impl AsRef<[u8]> for Screenshot { } } -impl Into<Bytes> for Screenshot { - fn into(self) -> Bytes { - self.bytes +impl From<Screenshot> for Bytes { + fn from(screenshot: Screenshot) -> Self { + screenshot.bytes } } |