Fix clippy lint in runtime:🪟:screenshot

This commit is contained in:
Héctor Ramón Jiménez 2024-05-01 01:09:31 +02:00
parent 45254ab88c
commit f5bc336d69
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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
}
}