summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-01 01:09:31 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-01 01:09:31 +0200
commitf5bc336d699d0c6440f6d638a5a437baaabe1e43 (patch)
treefd0d568711f6c2fedab44024070787a5e1650f61 /runtime
parent45254ab88c6ca76759523069c2fb8734de626f02 (diff)
downloadiced-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.rs6
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
}
}