From 0d8042287cdf26d7b9e5bd6017da096d02e89abf Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Tue, 14 Apr 2026 14:37:17 +0000 Subject: [PATCH] cargo fmt --- src/apis/assets.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)