Clippy + fmt

This commit is contained in:
Serial 2024-01-25 13:47:49 -05:00
parent b697ccee97
commit f10e31fae1
No known key found for this signature in database
GPG key ID: DA95198DC17C4568

View file

@ -1,10 +1,10 @@
use super::item::ApeItem; use super::item::ApeItem;
use super::ApeTag; use super::ApeTag;
use crate::ape::constants::{APE_PREAMBLE, INVALID_KEYS}; use crate::ape::constants::{APE_PREAMBLE, INVALID_KEYS};
use crate::picture::{APE_PICTURE_TYPES, Picture};
use crate::ape::header::{self, ApeHeader}; use crate::ape::header::{self, ApeHeader};
use crate::error::Result; use crate::error::Result;
use crate::macros::{decode_err, err, try_vec}; use crate::macros::{decode_err, err, try_vec};
use crate::picture::{Picture, APE_PICTURE_TYPES};
use crate::tag::item::ItemValue; use crate::tag::item::ItemValue;
use crate::util::text::utf8_decode; use crate::util::text::utf8_decode;
@ -58,7 +58,7 @@ where
let mut value = try_vec![0; value_size as usize]; let mut value = try_vec![0; value_size as usize];
data.read_exact(&mut value)?; 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)?); tag.pictures.push(Picture::from_ape_bytes(&key, &value)?);
continue; continue;
} }