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

@@ -53,11 +53,11 @@ impl ImageSource {
}
}
impl Into<async_openai::types::ImageInput> for ImageSource {
fn into(self) -> async_openai::types::ImageInput {
impl From<ImageSource> for async_openai::types::ImageInput {
fn from(value: ImageSource) -> Self {
async_openai::types::ImageInput::from_vec_u8(
self.filename,
self.bytes,
value.filename,
value.bytes,
)
}
}