From f10e31fae1e9c0a7fe14016a172fab6efd5e4433 Mon Sep 17 00:00:00 2001 From: Serial <69764315+Serial-ATA@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:47:49 -0500 Subject: [PATCH] Clippy + fmt --- src/ape/tag/read.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ape/tag/read.rs b/src/ape/tag/read.rs index bdfc741a..9d27023a 100644 --- a/src/ape/tag/read.rs +++ b/src/ape/tag/read.rs @@ -1,10 +1,10 @@ use super::item::ApeItem; use super::ApeTag; use crate::ape::constants::{APE_PREAMBLE, INVALID_KEYS}; -use crate::picture::{APE_PICTURE_TYPES, Picture}; use crate::ape::header::{self, ApeHeader}; use crate::error::Result; use crate::macros::{decode_err, err, try_vec}; +use crate::picture::{Picture, APE_PICTURE_TYPES}; use crate::tag::item::ItemValue; use crate::util::text::utf8_decode; @@ -58,7 +58,7 @@ where let mut value = try_vec![0; value_size as usize]; data.read_exact(&mut value)?; - if APE_PICTURE_TYPES.contains(&&**&key) { + if APE_PICTURE_TYPES.contains(&&*key) { tag.pictures.push(Picture::from_ape_bytes(&key, &value)?); continue; }