imageproc: Fix clippy warning

This commit is contained in:
Sosthène Guédon 2022-10-30 14:47:36 +01:00 committed by Vincent Prouillet
parent e290616fad
commit 53114533ff

View File

@ -585,7 +585,7 @@ impl From<ImageMeta> for ImageMetaResponse {
Self { Self {
width: im.size.0, width: im.size.0,
height: im.size.1, 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(),
} }
} }
} }