Make some improvements as suggested by clippy

This commit is contained in:
Slavi Pantaleev
2025-05-10 09:33:44 +03:00
parent 3ffa50b7b9
commit ac4f2080ce
4 changed files with 10 additions and 10 deletions

View File

@@ -35,9 +35,9 @@ impl ImageDetails {
}
}
impl Into<ImageSource> for &ImageDetails {
fn into(self) -> ImageSource {
ImageSource::new(self.filename(), self.data.clone(), self.mime.clone())
impl From<ImageDetails> for ImageSource {
fn from(value: ImageDetails) -> Self {
ImageSource::new(value.filename(), value.data.clone(), value.mime.clone())
}
}