From 53114533ff104f00cb89eceb81cdd309ea6b0872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Sun, 30 Oct 2022 14:47:36 +0100 Subject: [PATCH] imageproc: Fix clippy warning --- components/imageproc/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), } } }