summaryrefslogtreecommitdiffstats
path: root/runtime/src/window/screenshot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/window/screenshot.rs')
-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
}
}