diff --git a/components/imageproc/src/lib.rs b/components/imageproc/src/lib.rs index 8d2e73d701..d897d06ba0 100644 --- a/components/imageproc/src/lib.rs +++ b/components/imageproc/src/lib.rs @@ -585,7 +585,7 @@ impl From for ImageMetaResponse { Self { width: im.size.0, height: im.size.1, - format: im.format.and_then(|f| f.extensions_str().get(0)).copied(), + format: im.format.and_then(|f| f.extensions_str().first()).copied(), } } }