From a5d8a3e618571aaeee23fb283f45406fe3eb2346 Mon Sep 17 00:00:00 2001 From: KAMADA Ken'ichi Date: Thu, 7 Jan 2021 22:24:24 +0900 Subject: [PATCH] Remove an unnecessary return. --- src/webp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webp.rs b/src/webp.rs index bc140c7..d84da42 100644 --- a/src/webp.rs +++ b/src/webp.rs @@ -82,7 +82,7 @@ fn get_exif_attr_sub(reader: &mut R) } reader.discard_exact(size as usize)?; } - return Err(Error::NotFound("WebP")); + Err(Error::NotFound("WebP")) } pub fn is_webp(buf: &[u8]) -> bool {