diff --git a/src/apis/assets.rs b/src/apis/assets.rs index f22ce4e..bcbe01e 100644 --- a/src/apis/assets.rs +++ b/src/apis/assets.rs @@ -66,10 +66,9 @@ impl ThumbnailResponse { /// ``` pub fn decode(&self) -> Result { // Get image format from content type - let format = image::ImageFormat::from_mime_type(&self.content_type) - .ok_or_else(|| ImmichError::Image( - format!("Unsupported content type: {}", self.content_type) - ))?; + let format = image::ImageFormat::from_mime_type(&self.content_type).ok_or_else(|| { + ImmichError::Image(format!("Unsupported content type: {}", self.content_type)) + })?; // Create reader with the format and decode image::ImageReader::with_format(Cursor::new(&self.data), format)